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_01P5YBdxX2mH7piDf4NGrmPi
185 lines
16 KiB
CSS
185 lines
16 KiB
CSS
/* /solutions index, v3 (prefix xso-). The solution pages keep solutions.css; this file is the index's own.
|
||
JAMES.md: 0 UI hues. Ink, greys and black/white alpha steps; colour comes only from Hanzo's model films. */
|
||
.xso { --xi: var(--ink); --sec: light-dark(#525252, var(--text-helper)); --mut: light-dark(#737373, var(--text-tertiary)); --raised: light-dark(#f5f5f5, var(--surface-2)); --sunk: light-dark(#ededed, var(--surface-3)); overflow-x: clip; color: var(--xi); }
|
||
/* deck space: container 1152, gutter clamp(16px, 4vw, 32px), sections clamp(72px, 11vw, 188px) */
|
||
.xso .vc-wrap, .xso .vc-grid { width: min(100% - 2 * clamp(16px, 4vw, 32px), 1152px); }
|
||
.xso .vc-sec { padding: clamp(72px, 11vw, 188px) 0; }
|
||
.xso ::selection { background: light-dark(#e4e4e7, var(--selection)); }
|
||
.xso :focus-visible { outline: 2px solid var(--xi); outline-offset: 3px; box-shadow: 0 0 0 5px var(--bg); }
|
||
.xso-res :focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px #000; }
|
||
|
||
/* the asks: one solid ink pill; the second ask is a quiet outline; white in the dark room. Press .98. */
|
||
.xso-acts { display: flex; flex-wrap: wrap; gap: 12px; }
|
||
.xso-cta { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--xi); background: var(--xi); color: var(--x-on-ink); font: 500 16px/1 var(--sans); text-decoration: none; transition: background-color .15s cubic-bezier(0, 0, .2, 1), border-color .15s cubic-bezier(0, 0, .2, 1), transform 90ms cubic-bezier(0, 0, .2, 1); }
|
||
.xso-cta.q { background: transparent; color: var(--xi); border-color: var(--x-e10); }
|
||
.xso-cta.lt { background: #fff; color: #0a0a0a; border-color: #fff; }
|
||
@media (hover: hover) { .xso-cta:hover { background: light-dark(#262626, var(--primary-hover)); border-color: light-dark(#262626, var(--primary-hover)); } .xso-cta.q:hover { background: var(--raised); border-color: light-dark(rgba(0, 0, 0, .22), var(--white-22)); } .xso-cta.lt:hover { background: #e5e5e5; border-color: #e5e5e5; } }
|
||
.xso-cta:active { transform: scale(.97); }
|
||
|
||
/* arrival that needs no script: CSS keyframes play even with JS off, so no text waits on hydration */
|
||
@keyframes xso-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
|
||
.xso-in { animation: xso-up .9s var(--ease) .55s both; }
|
||
.xso-in2 { animation: xso-up 1.2s var(--ease) .2s both; }
|
||
html.x-arriving .xso-in, html.x-arriving .xso-in2 { animation-play-state: paused; }
|
||
|
||
/* 1. hero: three masked lines beside the live reel */
|
||
.xso-hero { padding: 88px 0 48px; }
|
||
.xso-hero-g { align-items: center; row-gap: 48px; }
|
||
.xso-hero-c { grid-column: 1 / 8; display: flex; flex-direction: column; gap: 32px; }
|
||
.xso-hero-f { display: flex; flex-direction: column; gap: 32px; }
|
||
.xso-hero-f .vc-lede { max-width: 44ch; }
|
||
.xso-hero-o { grid-column: 8 / 13; }
|
||
.xso-reel { position: relative; aspect-ratio: 4 / 5; max-height: 72svh; margin-left: auto; overflow: hidden; background: #0a0a0a; color: #fff; isolation: isolate; box-shadow: none; border-radius: 24px; }
|
||
.xso-reel-f { position: absolute; inset: 0; }
|
||
.xso-reel-f img, .xso-reel-f video, .xso-res-film img, .xso-res-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
|
||
.xso-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .78) 100%); pointer-events: none; }
|
||
.xso-reel-top { position: absolute; top: 28px; left: 28px; right: 28px; display: flex; justify-content: space-between; }
|
||
.xso-reel-top .vc-kick { color: rgba(255, 255, 255, .82); }
|
||
.xso-panes { position: absolute; left: 28px; right: 84px; bottom: 36px; display: grid; }
|
||
.xso-pane { grid-area: 1 / 1; align-self: end; display: flex; flex-direction: column; gap: 12px; color: #fff; text-decoration: none; opacity: 0; transform: translateY(18px); transition: opacity .35s var(--ease), transform .6s var(--ease); pointer-events: none; }
|
||
.xso-pane.on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .12s; }
|
||
.xso-pane-n { font-size: clamp(32px, 3.2vw, 40px); font-weight: 497; letter-spacing: -.035em; line-height: 1.02; }
|
||
.xso-pane-t { font-size: 17px; line-height: 1.45; color: rgba(255, 255, 255, .86); max-width: 34ch; }
|
||
.xso-pane-j, .xso-jobs { display: flex; flex-wrap: wrap; gap: 6px; }
|
||
.xso-pane-j span, .xso-jobs span { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); font: 500 13px/1.25 var(--mono); color: #fff; }
|
||
.xso-pause { position: absolute; right: 24px; bottom: 28px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(0, 0, 0, .25); color: #fff; cursor: pointer; transition: background-color .2s, transform .12s var(--ease); }
|
||
@media (hover: hover) { .xso-pause:hover { background: rgba(255, 255, 255, .18); } }
|
||
.xso-pause:active { transform: scale(.94); }
|
||
.xso-reel-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .14); }
|
||
.xso-reel-bar u { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(0); animation: xso-fill 3.8s linear forwards; }
|
||
@keyframes xso-fill { to { transform: scaleX(1); } }
|
||
|
||
/* 2. the catalogue: three huge words you press, a wall of film tiles that re-flows */
|
||
.xso-groups { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 44px; }
|
||
.xso-groups h2 { margin: 0; }
|
||
.xso-groups h2 button { position: relative; display: inline-flex; align-items: flex-start; padding: .06em .32em .1em; margin: 0 -.32em; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 497 clamp(40px, 6.6vw, 84px)/1.02 var(--sans); letter-spacing: -.035em; color: var(--xi); transition: color .15s cubic-bezier(0, 0, .2, 1), transform 90ms cubic-bezier(0, 0, .2, 1); }
|
||
.xso-pill { position: absolute; inset: 0; border-radius: 999px; background: var(--sunk); }
|
||
.xso-g-t, .xso-groups sup { position: relative; }
|
||
.xso-groups:has(h2 button[aria-pressed='true']) h2 button:not([aria-pressed='true']) { color: var(--mut); }
|
||
@media (hover: hover) { .xso-groups h2 button:hover { color: var(--xi) !important; } }
|
||
.xso-groups h2 button:active { transform: scale(.97); }
|
||
.xso-groups sup { margin: .3em 0 0 .3em; font: 606 12px/1 var(--mono); letter-spacing: .14em; color: var(--sec); }
|
||
.xso-grid { list-style: none; margin: clamp(48px, 5vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(300px, 27vw, 400px); gap: 16px; }
|
||
.xso-tile { grid-column: span 3; min-width: 0; }
|
||
.xso-tile.w4 { grid-column: span 4; }
|
||
.xso-tile.w6 { grid-column: span 6; }
|
||
.xso-tile.w12 { grid-column: span 12; }
|
||
.xso-tile-a { position: relative; display: block; height: 100%; border-radius: 24px; overflow: hidden; background: #262626; color: #fff; text-decoration: none; isolation: isolate; transition: transform .12s var(--ease); }
|
||
.xso-tile-a:active { transform: scale(.97); }
|
||
.xso-tile-m { position: absolute; inset: 0; z-index: -1; }
|
||
.xso-tile-m img, .xso-tile-m video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
|
||
.xso-tile-m video { animation: xso-show .6s ease both; }
|
||
@keyframes xso-show { from { opacity: 0; } to { opacity: 1; } }
|
||
.xso-tile-a::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .74) 100%); }
|
||
.xso-tile-no { position: absolute; top: 24px; left: 24px; font: 606 12px/1 var(--mono); letter-spacing: .14em; color: rgba(255, 255, 255, .78); }
|
||
.xso-tile-go { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #0a0a0a; opacity: 0; transition: opacity .3s var(--ease); }
|
||
.xso-tile-b { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
|
||
.xso-tile-n { font-size: clamp(21px, 2vw, 26px); font-weight: 497; letter-spacing: -.02em; line-height: 1.1; }
|
||
.xso-tile.w6 .xso-tile-n, .xso-tile.w12 .xso-tile-n { font-size: clamp(26px, 3vw, 40px); letter-spacing: -.035em; }
|
||
.xso-tile-t { font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .86); max-width: 40ch; text-wrap: pretty; }
|
||
/* hover / focus: the film plays, the jobs rise into the tile over a darker frame, the open arrow arrives */
|
||
/* the sentence and the jobs share one cell under the name (in flow, so they can never cover it); hover swaps them */
|
||
.xso-tile-sw { display: grid; }
|
||
.xso-tile-sw > * { grid-area: 1 / 1; align-self: end; transition: opacity .3s cubic-bezier(0, 0, .2, 1); }
|
||
.xso-jobs { flex-direction: column; align-items: flex-start; opacity: 0; pointer-events: none; }
|
||
.xso-jobs span { background: none !important; padding: 0 !important; min-height: 0 !important; font: 500 13px/1.35 var(--mono) !important; color: rgba(255, 255, 255, .86); text-wrap: pretty; }
|
||
.xso-tile-a::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .4s var(--ease); }
|
||
.xso-tile-a:focus-visible::before, .xso-tile-a:focus-visible .xso-jobs, .xso-tile-a:focus-visible .xso-tile-go { opacity: 1; }
|
||
.xso-tile-a:focus-visible .xso-tile-t { opacity: 0; }
|
||
@media (hover: hover) {
|
||
.xso-tile-a:hover .xso-tile-m img, .xso-tile-a:hover .xso-tile-m video { transform: scale(1.04); }
|
||
.xso-tile-a:hover::before, .xso-tile-a:hover .xso-jobs { opacity: 1; }
|
||
.xso-tile-a:hover .xso-tile-t { opacity: 0; }
|
||
.xso-tile-a:hover .xso-tile-go { opacity: 1; }
|
||
}
|
||
.xso-tile.w3 .xso-jobs span { font-size: 13px; }
|
||
|
||
/* 3. the reserved tier: the one dark room, over a film */
|
||
.xso-res { position: relative; overflow: hidden; background: #000; color: #f5f5f5; padding: clamp(160px, 18vw, 260px) 0; isolation: isolate; }
|
||
.xso-res-film { position: absolute; inset: 0; z-index: -2; }
|
||
.xso-res-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .3) 100%); }
|
||
.xso-res-g { align-items: end; row-gap: 40px; }
|
||
.xso-res .vc-display { grid-column: 1 / 8; color: #f5f5f5; }
|
||
.xso-res-r { grid-column: 8 / 13; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
|
||
.xso-res .vc-lede { color: #d4d4d4; }
|
||
|
||
@media (max-width: 899px) {
|
||
.xso-hero { padding: 96px 0 32px; min-height: 0; }
|
||
.xso-hero-c { gap: 24px; }
|
||
.xso-hero-f { gap: 24px; }
|
||
.xso-reel { max-height: none; aspect-ratio: 4 / 5.2; border-radius: 24px; }
|
||
.xso-reel-top { top: 22px; left: 22px; right: 22px; }
|
||
.xso-panes { left: 22px; right: 76px; bottom: 28px; }
|
||
.xso-pause { right: 18px; bottom: 22px; }
|
||
.xso-pane-n { font-size: 32px; }
|
||
.xso-pane-t { font-size: 16px; }
|
||
.xso-groups { gap: 0 24px; }
|
||
.xso-groups h2 button { font-size: 40px; }
|
||
.xso-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 320px; gap: 12px; }
|
||
.xso-tile, .xso-tile.w3, .xso-tile.w4, .xso-tile.w6, .xso-tile.w12 { grid-column: 1 / -1; }
|
||
.xso-tile-n, .xso-tile.w6 .xso-tile-n, .xso-tile.w12 .xso-tile-n { font-size: 26px; }
|
||
.xso-jobs { display: none; }
|
||
.xso-res-scrim { background: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .88)); }
|
||
}
|
||
@media (hover: none) { .xso-tile-go { opacity: 1; } }
|
||
/* 900–1199px: two tiles a row, so every tile's jobs fit under its name */
|
||
@media (min-width: 900px) and (max-width: 1199px) { .xso-tile, .xso-tile.w3, .xso-tile.w4, .xso-tile.w6, .xso-tile.w12 { grid-column: span 6; } }
|
||
@media (prefers-reduced-motion: reduce) { .xso-in, .xso-in2 { animation: none; } }
|
||
/* the same model film on several tiles gets its own framing per tile, so neighbours never look identical */
|
||
.xso-tile-m img, .xso-tile-m video { object-position: calc(15% + mod(var(--k, 0) * 37, 70) * 1%) calc(20% + mod(var(--k, 0) * 23, 60) * 1%); }
|
||
.xso-tile:nth-child(3n + 1) .xso-tile-m { transform: scale(1.18); }
|
||
.xso-tile:nth-child(3n + 2) .xso-tile-m { transform: scale(1.36) scaleX(-1); }
|
||
.xso-pane-t { text-wrap: pretty; }
|
||
|
||
/* deck rhythm: the h1 rests at 52, the filter words at 32 (one big thing per screen: the reel, then the wall) */
|
||
.xso-tile-a { clip-path: inset(0 round 24px); }
|
||
@media (max-width: 899px) { .xso-tile-a { clip-path: none; } .xso-tile-m { clip-path: inset(0 round 12px); } }
|
||
.xso .xso-h1 { font-size: clamp(40px, 5vw, 52px); line-height: 1.04; }
|
||
.xso-groups { gap: 4px 28px; }
|
||
.xso-res .vc-display { font-size: clamp(40px, 5vw, 52px); }
|
||
.xso-groups h2 button { font-size: clamp(26px, 2.6vw, 32px); }
|
||
.xso-groups sup { font-size: 11px; }
|
||
/* one section step (about 120px) from the hero's last line to the filters, not a dead 240 */
|
||
.xso .xso-cat.vc-sec { padding-top: clamp(24px, 3vw, 48px); }
|
||
@media (max-width: 899px) { .xso .xso-cat.vc-sec { padding-top: 56px; } }
|
||
.xso-hero { padding-bottom: 24px; }
|
||
/* the tile crossing the middle grows a little (the wall has one moment at a time, not 17 equal boxes) */
|
||
@media (min-width: 900px) { .xso-tile { transition: transform .6s cubic-bezier(.16, 1, .3, 1); } .xso-tile.mid { transform: scale(1.025); z-index: 1; } }
|
||
.xso-grid { margin-top: clamp(28px, 3vw, 44px); }
|
||
/* the tile crossing the middle of the screen plays its film and shows its jobs, one at a time, with no pointer */
|
||
.xso-tile.mid .xso-tile-a::before, .xso-tile.mid .xso-jobs { opacity: 1; }
|
||
.xso-tile.mid .xso-tile-t { opacity: 0; }
|
||
@media (max-width: 899px) {
|
||
/* phones: the catalogue is 72px rows (MASTER part 15): a film still, the name, its number, the arrow */
|
||
.xso-grid { grid-auto-rows: 72px; gap: 0; border-top: 1px solid var(--x-e10); }
|
||
.xso-tile-a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; height: 72px; padding: 0 4px; border-radius: 0; background: none; color: var(--xi); border-bottom: 1px solid var(--x-e10); }
|
||
.xso-tile-a::after, .xso-tile-a::before { display: none; }
|
||
.xso-tile-m { position: relative; inset: auto; z-index: 0; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #0a0a0a; transform: none !important; }
|
||
.xso-tile-b { position: static; gap: 2px; grid-column: 2; grid-row: 1; text-align: left; align-items: flex-start; }
|
||
.xso-tile-m { grid-column: 1; grid-row: 1; }
|
||
.xso-tile-go { grid-column: 3; grid-row: 1; }
|
||
.xso-tile-n, .xso-tile.w6 .xso-tile-n, .xso-tile.w12 .xso-tile-n { font-size: 17px; letter-spacing: -.01em; }
|
||
.xso-tile-sw, .xso-tile-no { display: none; }
|
||
.xso-tile-go { position: static; opacity: 1; width: 44px; height: 44px; background: var(--raised); color: var(--xi); }
|
||
.xso-tile.mid .xso-tile-go { background: var(--xi); color: var(--x-on-ink); }
|
||
.xso-groups h2 button { font-size: 26px; }
|
||
}
|
||
/* the dark room's light ask lifts and greys under the pointer (more than a shade) */
|
||
@media (hover: hover) { .xso .xso-cta.lt:hover { background: #e5e5e5; border-color: #e5e5e5; transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); } }
|
||
/* dark mode (docs/DARK-MODE.md): the Company deck kit (company/deck.css) states its own greys on .vc; on this page they take
|
||
Hanzo's dark values (text #e5e5e5, muted #a3a3a3, surfaces #171717, borders white 10%). The reel, tiles and the
|
||
reserved room are films and stay black. */
|
||
html:not(.light) .vc.xso { --ink: var(--foreground); --ink2: var(--text-helper); --muted: var(--text-helper); --quiet: var(--surface-2); --card: var(--surface-2); --tile: var(--surface-3); --line: var(--border); }
|
||
html:not(.light) .xso .vc-kick.acc { color: var(--ink); }
|
||
|
||
/* dark only: Hanzo's halftone dot field behind the hero, as live hanzo.ai's dark heroes sit on it */
|
||
html:not(.light) .xso-hero { position: relative; isolation: isolate; }
|
||
html:not(.light) .xso-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
|
||
background: radial-gradient(circle, color-mix(in srgb, var(--foreground) 36%, transparent) 1.5px, transparent 2.1px) 0 0 / 7px 7px;
|
||
-webkit-mask-image: linear-gradient(90deg, #000, rgba(0,0,0,.15) 32%, rgba(0,0,0,.15) 64%, #000), linear-gradient(180deg, rgba(0,0,0,.25), #000 85%);
|
||
-webkit-mask-composite: source-in;
|
||
mask-image: linear-gradient(90deg, #000, rgba(0,0,0,.15) 32%, rgba(0,0,0,.15) 64%, #000), linear-gradient(180deg, rgba(0,0,0,.25), #000 85%);
|
||
mask-composite: intersect; }
|
||
html:not(.light) .xso-hero::after { content: ''; position: absolute; inset: 0 0 auto; height: 640px; z-index: -1; pointer-events: none;
|
||
background: radial-gradient(60% 70% at 50% 0%, color-mix(in srgb, var(--foreground) 9%, transparent), transparent 70%); }
|