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_01P5YBdx19ukLv4B41yE4M3v
176 lines
15 KiB
CSS
176 lines
15 KiB
CSS
/* /customers, v3 (prefix xcu-). Only the index uses this file; the case studies have their own.
|
|
JAMES.md: 0 UI hues. Ink #0a0a0a, secondary #525252, muted #737373, raised #f5f5f5, sunken #ededed; colour only from
|
|
the cases' own pictures. */
|
|
.xcu { --xi: #0a0a0a; --sec: #525252; --mut: #737373; --raised: #f5f5f5; --sunk: #ededed; overflow-x: clip; color: var(--xi); }
|
|
/* deck space: container 1152, gutter clamp(16px, 4vw, 32px), sections clamp(72px, 11vw, 188px) */
|
|
.xcu .vc-wrap, .xcu .vc-grid { width: min(100% - 2 * clamp(16px, 4vw, 32px), 1152px); }
|
|
.xcu .vc-sec { padding: clamp(72px, 11vw, 188px) 0; }
|
|
.xcu ::selection { background: #e4e4e7; }
|
|
.xcu :focus-visible { outline: 2px solid var(--xi); outline-offset: 3px; box-shadow: 0 0 0 5px #fff; }
|
|
.xcu-alt { font: 497 17px/1 var(--sans); letter-spacing: -.01em; color: inherit; white-space: nowrap; }
|
|
/* scale with rhythm (JAMES 1): resting sizes are live hanzo.ai's (h1 52, section headings 26, figures 64); one big
|
|
thing per screen: the plate's figure on the first, the stage's figure in the index, the sliding figures in the close.
|
|
Page-local overrides of the company deck's display and headline sizes. */
|
|
.vc.xcu .xcu-h1.vc-display { font-size: 52px; line-height: 1.04; letter-spacing: -.03em; }
|
|
.vc.xcu .vc-headline, .vc.xcu .xcu-close .vc-display { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
|
|
|
|
/* the one ask: solid ink pill (white in the dark room); press is .97 (90ms), hover darkens */
|
|
.xcu-cta { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 28px; border-radius: 999px; background: var(--xi); color: #fff; font: 500 16px/1 var(--sans); text-decoration: none; transition: background-color .15s cubic-bezier(0, 0, .2, 1), transform 90ms cubic-bezier(0, 0, .2, 1); }
|
|
.xcu-cta.lt { background: #fff; color: #0a0a0a; }
|
|
@media (hover: hover) { .xcu-cta:hover { background: #262626; } .xcu-cta.lt:hover { background: #e5e5e5; } }
|
|
.xcu-cta:active { transform: scale(.97); }
|
|
|
|
/* 1. hero: the headline and its ask (entrances and the statement's word-light live in customers/enter.css) */
|
|
.xcu-hero { padding: clamp(96px, 8vw, 120px) 0 0; }
|
|
.xcu-hero-g { row-gap: 28px; align-items: end; }
|
|
.xcu-h1 { grid-column: 1 / -1; }
|
|
.xcu-hero-f { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 48px; }
|
|
/* the statement is the medium voice under the 52px h1 (JAMES 1: one big thing per screen) */
|
|
.vc.xcu .xcu-lede.xcu-wl { max-width: 34ch; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.25; color: #0a0a0a; }
|
|
.xcu-cases { padding-top: 0; }
|
|
.xcu-plate { position: relative; aspect-ratio: 16 / 8.4; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, #262626 0%, #0a0a0a 55%, #000000 100%); }
|
|
.xcu-line { position: absolute; z-index: 4; left: clamp(24px, 3vw, 48px); right: clamp(24px, 3vw, 48px); top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; pointer-events: none; }
|
|
.xcu-line i { position: relative; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; }
|
|
.xcu-line u { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; }
|
|
.xcu-line u.run { transform: scaleX(0); animation: xcu-fill 5.2s linear forwards; }
|
|
@keyframes xcu-fill { to { transform: scaleX(1); } }
|
|
.xcu-case { position: absolute; inset: 0; background: inherit; }
|
|
.xcu-case.t0 { background: linear-gradient(160deg, #262626 0%, #0a0a0a 58%, #000000 100%); }
|
|
.xcu-case.t1 { background: linear-gradient(200deg, #525252 0%, #262626 42%, #0a0a0a 100%); }
|
|
.xcu-case.t1 .xcu-ph-s { color: rgba(255, 255, 255, .45); }
|
|
.xcu-case-a { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
|
|
.xcu-case-txt { position: absolute; inset: 0; display: block; }
|
|
.xcu-ph { position: absolute; inset: 0; display: block; }
|
|
.xcu-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform 1.2s var(--ease); }
|
|
@media (hover: hover) { .xcu-case-a:hover .xcu-ph img { transform: scale(1.06); } }
|
|
.xcu-ph-s { position: absolute; inset: 0; color: rgba(255, 255, 255, .34); }
|
|
.xcu-ph-s canvas { width: 100%; height: 100%; display: block; }
|
|
.xcu-ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .3) 48%, rgba(0, 0, 0, 0) 72%); }
|
|
.xcu-case-top { position: absolute; left: clamp(24px, 3vw, 48px); right: clamp(24px, 3vw, 48px); top: clamp(36px, 3.6vw, 52px); display: flex; justify-content: space-between; align-items: center; }
|
|
.xcu-case-top .vc-kick { color: rgba(255, 255, 255, .82); }
|
|
.xcu-mark { display: block; height: 28px; width: auto; max-width: 180px; object-fit: contain; filter: brightness(0) invert(1); background: transparent !important; }
|
|
.xcu-case-in { position: absolute; left: clamp(24px, 3vw, 48px); right: clamp(24px, 3vw, 48px); top: clamp(88px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr) auto; column-gap: 24px; align-items: start; }
|
|
.xcu-fig { display: flex; flex-direction: column; gap: 22px; }
|
|
.xcu-fig b { font: 220 clamp(72px, 13vw, 112px)/.9 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
|
|
.xcu-fig span { font: 606 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .86); }
|
|
.xcu-case-r { display: flex; flex-direction: column; gap: 12px; }
|
|
.xcu-case-r h3 { margin: 0; color: #fff; font-size: clamp(21px, 2vw, 26px); font-weight: 497; letter-spacing: -.025em; line-height: 1.1; }
|
|
.xcu-case-d { font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .86); max-width: 40ch; }
|
|
.xcu-go { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); color: #fff; transition: transform .35s var(--ease), background-color .3s, color .3s; }
|
|
@media (hover: hover) { .xcu-case-a:hover .xcu-go { background: #fff; color: #0a0a0a; transform: translateX(4px); } }
|
|
.xcu-case-a:active .xcu-go { transform: scale(.97); }
|
|
.xcu-tabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 20px; }
|
|
.xcu-cs { margin: 0; font: 606 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
|
|
.xcu-tabs .x-tab { height: 44px; padding: 0 20px; font-size: 15px; }
|
|
|
|
/* 2. every launch: rows scroll past a pinned stage that shows the launch being read */
|
|
.xcu-every-g { align-items: end; row-gap: clamp(48px, 5vw, 80px); }
|
|
.xcu-every-g h2 { grid-column: 1 / 7; grid-row: 1; }
|
|
.xcu-years { grid-column: 7 / 13; grid-row: 1; display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
|
|
.xcu-years button { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 999px; border: 0; background: none; color: var(--mut); cursor: pointer; font: 500 16px/1 var(--sans); transition: color .25s; }
|
|
.xcu-years button > b, .xcu-years button > .xcu-dots { position: relative; }
|
|
.xcu-years button b { font-weight: 497; }
|
|
.xcu-years button[aria-pressed='true'], .xcu-years button.here { color: var(--xi); }
|
|
@media (hover: hover) { .xcu-years button:hover { color: var(--xi); } }
|
|
.xcu-years button:active { transform: scale(.97); }
|
|
.xcu-years button > .xcu-pill { position: absolute; inset: 0; border-radius: 999px; background: var(--sunk); }
|
|
.xcu-dots { display: inline-flex; gap: 4px; }
|
|
.xcu-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; }
|
|
.xcu-index { grid-column: 1 / -1; grid-row: 2; align-self: start; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid rgba(0, 0, 0, .1); }
|
|
.xcu-row { position: relative; isolation: isolate; display: grid; grid-template-columns: 72px minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); column-gap: 24px; align-items: start; padding: 36px 0; border-top: 1px solid rgba(0, 0, 0, .1); transition: opacity .4s var(--ease); }
|
|
.xcu-row[hidden] { display: none; }
|
|
.xcu-row::before { content: ''; position: absolute; inset: 0 -12px 0 -24px; border-radius: 16px; background: var(--raised); opacity: 0; transition: opacity .35s var(--ease); z-index: -1; }
|
|
.xcu-row-y { font: 500 15px/2.2 var(--mono); color: var(--mut); transition: color .3s; }
|
|
.xcu-row-n { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
|
|
.xcu-row-n h3 { margin: 0; font-size: 21px; font-weight: 497; letter-spacing: -.02em; line-height: 1.15; transition: transform .5s var(--ease); }
|
|
.xcu-kind { font: 606 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
|
|
.xcu-row-d { margin: 6px 0 0; font-size: 17px; line-height: 1.55; color: var(--sec); max-width: 44ch; }
|
|
/* each row carries its own figures; they rise into place once, as the row comes up the screen (or is pointed at). No
|
|
mask: a number is either whole or not yet there, never sliced */
|
|
.xcu-row-f { margin: 0; display: flex; flex-direction: column; gap: 14px; }
|
|
.xcu-row-f dt { font-size: 32px; font-weight: 220; letter-spacing: -.03em; line-height: 1; color: var(--xi); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
.xcu-row-f dd { margin: 6px 0 0; font-size: 14px; color: var(--sec); }
|
|
.js .xcu-row-f dt, .js .xcu-row-f dd { opacity: 0; transform: translateY(18px); transition: transform .6s cubic-bezier(.16, 1, .3, 1), opacity .3s cubic-bezier(0, 0, .2, 1); }
|
|
.js .xcu-row-f dd { transition-delay: 70ms; }
|
|
.js .xcu-row.read .xcu-row-f dt, .js .xcu-row.read .xcu-row-f dd { opacity: 1; transform: none; }
|
|
.xcu-row.on .xcu-row-y { color: var(--xi); }
|
|
.xcu-row.on .xcu-row-n h3 { transform: translateX(8px); }
|
|
@media (hover: hover) { .xcu-row:hover::before { opacity: 1; } }
|
|
|
|
/* 3. backed by builders: a calm row of names, as live shows them, no boxes */
|
|
.xcu-back { padding-top: clamp(96px, 10vw, 160px); }
|
|
.xcu-back-g { row-gap: 40px; align-items: center; }
|
|
.xcu-back-g h2 { grid-column: 1 / 5; }
|
|
.xcu-wall { grid-column: 5 / 13; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 48px; }
|
|
.xcu-wall a { display: inline-flex; align-items: center; min-height: 56px; color: var(--mut); text-decoration: none; transition: color .3s, transform .12s var(--ease); }
|
|
.xcu-wall .xcu-alt { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.03em; }
|
|
.xcu-wall img { height: 28px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1) brightness(.25); opacity: .7; transition: opacity .3s, filter .3s; background: transparent !important; }
|
|
.xcu-wall li.ts img { height: 34px; }
|
|
@media (hover: hover) { .xcu-wall a:hover { color: var(--xi); } .xcu-wall a:hover img { opacity: 1; filter: grayscale(1) brightness(0); } }
|
|
.xcu-wall a:active { transform: scale(.97); }
|
|
|
|
/* 4. the one dark room: Hanzo's launch figures slide past each other as it scrolls by */
|
|
.xcu-close { position: relative; overflow: hidden; background: #000000; color: #f5f5f5; padding: clamp(160px, 18vw, 260px) 0; }
|
|
.xcu-figs { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; pointer-events: none; }
|
|
.xcu-figs > span { display: flex; gap: .5em; white-space: nowrap; font: 220 clamp(84px, 12vw, 188px)/1 var(--sans); letter-spacing: -.03em; color: #262626; font-variant-numeric: tabular-nums; }
|
|
.xcu-close-g { position: relative; align-items: end; row-gap: 40px; }
|
|
.xcu-close .vc-display { grid-column: 1 / 9; color: #f5f5f5; }
|
|
.xcu-close .xcu-cta { grid-column: 9 / 13; justify-self: end; }
|
|
|
|
@media (max-width: 899px) {
|
|
.xcu-hero { padding-top: 96px; }
|
|
.vc.xcu .xcu-h1.vc-display { font-size: 40px; }
|
|
.xcu-hero-g { row-gap: 22px; }
|
|
.xcu-hero-f { gap: 22px; }
|
|
.xcu-cases { padding-top: 0; }
|
|
.xcu-plate { aspect-ratio: 4 / 5.4; border-radius: 20px; }
|
|
.xcu-case-in { grid-template-columns: minmax(0, 1fr); row-gap: 18px; top: auto; bottom: 24px; }
|
|
.xcu-ph::after { background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .66) 100%); }
|
|
.xcu-go { display: none; }
|
|
.xcu-fig b { font-size: 72px; }
|
|
.xcu-case-d { font-size: 15px; }
|
|
.xcu-tabs { flex-direction: column; align-items: flex-start; }
|
|
.xcu-years { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * clamp(16px, 4vw, 32px)); padding: 6px clamp(16px, 4vw, 32px); scrollbar-width: none; position: sticky; top: 60px; z-index: 10; background: #fff; border-bottom: 1px solid rgba(0, 0, 0, .1); }
|
|
.xcu-years::-webkit-scrollbar { display: none; }
|
|
.xcu-years button { flex: none; }
|
|
.xcu-years button.here:not([aria-pressed='true'])::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--xi); }
|
|
.xcu-every-g { row-gap: 24px; }
|
|
.xcu-every-g h2, .xcu-years, .xcu-index { grid-row: auto; }
|
|
.xcu-row { grid-template-columns: 56px minmax(0, 1fr); row-gap: 16px; padding: 32px 0; }
|
|
.xcu-row::before { inset: 0 -12px; }
|
|
.xcu-row-d, .xcu-row-f, .xcu-row-f0 { grid-column: 2; }
|
|
.xcu-row-f0 { display: none; }
|
|
.xcu-row.on .xcu-row-n h3 { transform: none; }
|
|
.xcu-row-n h3 { font-size: 17px; transition: color .3s cubic-bezier(0, 0, .2, 1); }
|
|
.js .xcu-row:not(.read) .xcu-row-n h3 { color: #737373; }
|
|
.xcu-row-f dt { font-size: 40px; }
|
|
.xcu-row-f dd { font-size: 15px; }
|
|
.xcu-row-y { line-height: 1.6; }
|
|
.xcu-back-g h2, .xcu-wall { grid-column: 1 / -1; }
|
|
.xcu-wall { gap: 4px 32px; }
|
|
.xcu-figs > span { font-size: 84px; }
|
|
.xcu-close .xcu-cta { justify-self: start; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.xcu-line u.run { animation: none; transform: scaleX(1); }
|
|
.xcu-row-f dt, .xcu-row-f dd { opacity: 1 !important; transform: none !important; transition: none; }
|
|
}
|
|
|
|
/* dark mode (docs/DARK-MODE.md): Hanzo's default; light is html.light, so every rule here sits under html:not(.light)
|
|
and bright mode is untouched. Page and deck tokens take Hanzo's dark tokens through our --x- aliases (they resolve on
|
|
<html>). The case plate and the closing room are black in both modes and stay as they are. */
|
|
html:not(.light) .xcu { --xi: var(--foreground); --sec: var(--muted-foreground); --mut: var(--faint); --raised: var(--x-fill); --sunk: var(--x-knob); --ink: var(--foreground); --ink2: var(--muted-foreground); --muted: var(--faint); --line: var(--x-e10); }
|
|
html:not(.light) .xcu ::selection { background: var(--x-knob); }
|
|
html:not(.light) .xcu :focus-visible { box-shadow: 0 0 0 5px var(--bg); }
|
|
html:not(.light) .xcu-cta:not(.lt) { color: var(--x-on-ink); }
|
|
@media (hover: hover) { html:not(.light) .xcu-cta:not(.lt):hover { background: var(--muted-foreground); } }
|
|
html:not(.light) .vc.xcu .xcu-lede.xcu-wl { color: var(--xi); }
|
|
html:not(.light) .xcu-index, html:not(.light) .xcu-row { border-color: var(--x-e10); }
|
|
@media (max-width: 899px) {
|
|
html:not(.light) .xcu-years { background: var(--bg); border-bottom-color: var(--x-e10); }
|
|
html:not(.light) .js .xcu-row:not(.read) .xcu-row-n h3 { color: var(--mut); }
|
|
}
|
|
/* the builders' logos are dark artwork: in dark they are drawn light, at the same quiet weight */
|
|
html:not(.light) .xcu-wall img { filter: grayscale(1) brightness(0) invert(1); opacity: .6; }
|
|
@media (hover: hover) { html:not(.light) .xcu-wall a:hover img { filter: grayscale(1) brightness(0) invert(1); opacity: 1; } }
|