mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:21:13 +00:00
- Home: product mockups stay dark; their green/red diff lines, POST labels and Posted badge keep the same colours, written as the rgb Hanzo's color-mix() resolves to in dark; the GitHub mark on its dark tile uses var(--foreground). - /tag, /brand: labels on light chips and the Hanzo White sample use --neutral-600 / --x-on-ink / --primary-foreground; swatch colours unchanged. - /bot, /hsm: dimmed names use --text-tertiary instead of white at 30%. - /comparison, /iro, /koe, /koma: secondary lines in dark rooms use --muted-foreground. - /slack, /skills, /machines, /hsm, /brand, /press: selected tabs and pills drawn by a sibling or ::before; the selected element now carries the same colour in dark. Every rule is under html:not(.light): light mode is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01P5YBdwj33XByFVTvu9bfci
287 lines
25 KiB
CSS
287 lines
25 KiB
CSS
/* HSM v2. Greys only (Hanzo's deck). One dark room: the exploded chapters. */
|
|
.hs { --acc: #0a0a0a; --glow: #525252; --btn-solid-hover: #262626; }
|
|
/* dark (docs/DARK-MODE.md): the shared .v2 greys on this page point at Hanzo's tokens, the page sits on Hanzo's
|
|
background, and the light sections' module is drawn as the dark room draws it, in Hanzo's surfaces */
|
|
html:not(.light) .v2.hs { --ink: var(--foreground); --soft: var(--muted-foreground); --faint: var(--muted-foreground); --line: var(--border); --card: var(--muted); --acc: var(--foreground); --glow: var(--muted-foreground); --btn-solid-hover: var(--primary-hover); background: var(--bg); }
|
|
.hs .v2-dark, .hs [data-room='dark'] { --acc: #f5f5f5; --glow: #e5e5e5; }
|
|
html:not(.light) .hs-hero .hm, html:not(.light) .hs-pick .hm { --plate: var(--muted); --edge: var(--border-strong); --ink2: var(--foreground); }
|
|
html:not(.light) .hs-hero .hm-handle, html:not(.light) .hs-pick .hm-handle { background: var(--surface-card-quiet); }
|
|
html:not(.light) .hs-hero .hm-module, html:not(.light) .hs-pick .hm-module { background: linear-gradient(135deg, var(--secondary), var(--muted)); }
|
|
html:not(.light) .hs-hero .hm-key, html:not(.light) .hs-pick .hm-key { background: var(--background); border-color: var(--border-control); }
|
|
|
|
/* the module: five plates in one isometric stack */
|
|
.hm { --s: clamp(200px, 21vw, 300px); --plate: #fff; --edge: rgba(0, 0, 0, .08); --ink2: #0a0a0a; --gk: 1; position: relative; width: 100%; height: 100%; }
|
|
.hm-stack { position: absolute; inset: 0; }
|
|
.hm-plate { position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); box-sizing: border-box; border-radius: 28px; background: var(--plate); border: 1px solid var(--edge); z-index: calc(10 + var(--z)); transform: rotateX(58deg) rotateZ(-42deg) translateZ(calc(var(--z) * var(--gap) * var(--gk))); transition: transform .95s cubic-bezier(.16, 1, .3, 1), border-color .5s, box-shadow .5s, background .5s; box-shadow: 0 30px 40px -24px rgba(0, 0, 0, .28); }
|
|
.hm-boundary { background: transparent; border: 2px dashed var(--edge); box-shadow: none; }
|
|
.hm-handle { background: rgba(255, 255, 255, .55); }
|
|
.hm-key { display: grid; place-items: center; background: #171717; border-color: #171717; }
|
|
.hm-core { position: relative; width: 44%; height: 44%; }
|
|
.hm-core i { position: absolute; inset: 0; border-radius: 999px; background: radial-gradient(circle at 40% 40%, #d4d4d4, var(--glow) 45%, var(--acc)); box-shadow: 0 0 40px 6px rgba(163, 163, 163, .55); transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
|
|
.hm-core.split i { transform: scale(.48); }
|
|
.hm-core.split i:nth-child(1) { transform: translate(-62%, -40%) scale(.48); }
|
|
.hm-core.split i:nth-child(2) { transform: translate(62%, -40%) scale(.48); }
|
|
.hm-core.split i:nth-child(3) { transform: translate(0, 66%) scale(.48); }
|
|
.hm-grid { position: absolute; inset: 14%; border-radius: 12px; background-image: linear-gradient(var(--edge) 1px, transparent 1px), linear-gradient(90deg, var(--edge) 1px, transparent 1px); background-size: 18px 18px; }
|
|
.hm-module { display: grid; place-items: center; background: linear-gradient(135deg, #f5f5f5, #e9e9e9); }
|
|
.hm-name { font: 600 clamp(15px, 1.5vw, 22px)/1.1 var(--sans); letter-spacing: -.02em; color: var(--ink2); text-align: center; padding: 0 12%; }
|
|
.hm-plate.lit { border-color: var(--glow); box-shadow: 0 0 0 1px var(--glow), 0 0 60px -6px rgba(163, 163, 163, .6); }
|
|
.hm-boundary.lit { box-shadow: 0 0 60px -10px rgba(163, 163, 163, .5); }
|
|
.hm-labels { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; pointer-events: none; }
|
|
.hm-labels li { position: absolute; left: calc(50% + var(--s) * .62); top: calc(50% - var(--z) * var(--gap) * var(--gk) * .848); transform: translateY(-50%); display: flex; align-items: center; gap: 12px; max-width: 240px; font: 500 clamp(13px, 1vw, 15px)/1.3 var(--mono); color: var(--soft); transition: top .95s cubic-bezier(.16, 1, .3, 1), color .4s; animation: hm-in .7s cubic-bezier(.16, 1, .3, 1) both .25s; }
|
|
.hm-labels li i { flex: none; width: 40px; height: 1px; background: currentColor; opacity: .6; }
|
|
.hm-labels li.lit { color: var(--glow); }
|
|
@keyframes hm-in { from { opacity: 0; transform: translate(-10px, -50%); } }
|
|
|
|
/* hero: light, copy left, the module signing on the right as the one big object (no frame). The hero fills the first
|
|
screen less 56px, so the dark room peeks under it; the copy centres, which sets the h1 near 38% of the screen. Lede
|
|
and ask are on screen from the first frame: they rise, they never wait at opacity 0. */
|
|
.hs-hero { padding: 0; }
|
|
.hs-hero-grid { align-items: center; min-height: calc(100svh - var(--x-top, 64px) - 56px); padding-block: 44px; box-sizing: border-box; }
|
|
.hs-hero-copy { grid-column: 1 / span 5; }
|
|
.hs-h1 { margin: 0 0 24px; }
|
|
.hs-lede { margin-bottom: 36px; max-width: 44ch; }
|
|
.hs .hs-hero .v2-in { animation-name: hs-rise; }
|
|
@keyframes hs-rise { from { transform: translate3d(0, 16px, 0); } }
|
|
.hs-hero-obj { grid-column: 6 / -1; height: clamp(420px, 38vw, 560px); }
|
|
.hs-hero-obj > div { height: 100%; }
|
|
.hs-sign { position: relative; height: 100%; }
|
|
.hs-sign .hm { --s: clamp(240px, 25vw, 360px); }
|
|
.hs-io { position: absolute; z-index: 40; top: 50%; margin: 0; padding: 12px 16px; border-radius: 999px; background: var(--x-raised); box-shadow: 0 0 0 1px light-dark(rgba(0, 0, 0, .06), var(--border)), 0 14px 30px -14px rgba(0, 0, 0, .25); font: 500 14px/1 var(--mono); white-space: nowrap; }
|
|
.hs-io.in { left: 6%; transform: translateY(-160%); }
|
|
.hs-io.out { right: 6%; transform: translateY(80%); color: var(--acc); }
|
|
/* the call line, left-aligned after the docked pause; the module name keeps a fixed width so the line never moves */
|
|
.hs-call { position: absolute; left: 60px; right: 0; bottom: 28px; margin: 0; display: flex; justify-content: flex-start; align-items: center; gap: 10px; font: 500 15px/1 var(--mono); color: var(--soft); }
|
|
.hs-arr { flex: none; color: var(--faint); }
|
|
.hs-call-m { display: inline-block; min-width: 16ch; }
|
|
.hs-call b { color: var(--ink); font-weight: 600; display: inline-block; white-space: nowrap; }
|
|
.hs-tk { flex: none; vertical-align: -2px; margin-left: 8px; color: var(--ink); }
|
|
/* a fine pointer tilts the module (2.5° at most; --tx/--ty are set on .hs-sign by the pointer) and parts its plates
|
|
(each opens up to about 12px further) */
|
|
.hs-sign .hm { transform: perspective(1400px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); transition: transform .3s cubic-bezier(0, 0, .2, 1); }
|
|
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
|
|
.hs-sign:hover .hm { --gk: 1.5; }
|
|
}
|
|
/* the signing pulse: a bead travels from the bytes chip into the module, the key plate answers, and it leaves as the
|
|
signature, once per module (it restarts with each one); it starts within the first second */
|
|
.hs-pulse { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 999px; background: var(--ink); box-shadow: 0 0 0 4px light-dark(rgba(10, 10, 10, .12), var(--border)); opacity: 0; pointer-events: none; z-index: 30; }
|
|
.hs-sign.live .hs-pulse { animation: hs-pulse 2.4s cubic-bezier(.4, 0, .2, 1) .15s both; }
|
|
.hs-sign { container-type: size; }
|
|
@keyframes hs-pulse {
|
|
0% { opacity: 0; transform: translate(22cqw, 36cqh) scale(.6); }
|
|
8% { opacity: 1; }
|
|
40% { opacity: 1; transform: translate(50cqw, 50cqh) scale(1); }
|
|
50% { opacity: 1; transform: translate(50cqw, 50cqh) scale(2.2); }
|
|
58% { transform: translate(50cqw, 50cqh) scale(1); }
|
|
92% { opacity: 1; }
|
|
100% { opacity: 0; transform: translate(78cqw, 60cqh) scale(.6); }
|
|
}
|
|
|
|
/* the signature: the spotlight room. A black room that enters as a rounded card inside the gutters and opens to full
|
|
width (clip-path set by scroll in Hsm.jsx). The module on the left, the first five facts in normal flow on the right
|
|
(nothing pins). A soft light follows the cursor; the fact under it comes to full ink and lights its plate. */
|
|
.hc { position: relative; overflow: clip; background: #000; color: #fafafa; }
|
|
.hc-light { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
|
|
.hc-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: 24px; align-items: center; padding-block: clamp(72px, 9vw, 116px); }
|
|
.hc-vis { position: relative; height: clamp(440px, 44vw, 620px); }
|
|
.hc-copy { display: flex; flex-direction: column; }
|
|
.hc-art { padding: 24px 20px 26px; margin: 0 -20px; border-top: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; outline: none; cursor: default; transition: background-color .3s cubic-bezier(0, 0, .2, 1); }
|
|
.hc-art:first-child { border-top-color: transparent; }
|
|
.hc-art[data-on] { background: rgba(255, 255, 255, .05); border-top-color: transparent; }
|
|
.hc-art[data-on] + .hc-art { border-top-color: transparent; }
|
|
.hc-art:focus-visible { box-shadow: 0 0 0 2px #fafafa; }
|
|
.hc-t { margin: 0; font-size: 26px; font-weight: 497; line-height: 1.15; letter-spacing: -.02em; color: rgba(255, 255, 255, .78); text-wrap: balance; max-width: 22ch; transition: color .3s cubic-bezier(0, 0, .2, 1); }
|
|
.hc-art[data-on] .hc-t { color: #fff; }
|
|
.hc-n { margin: 10.5px 0 0; color: rgba(255, 255, 255, .55); }
|
|
/* the room's name, a caption beside the first counter */
|
|
.hc-what { margin-left: 12px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .22); }
|
|
/* scale rhythm: the fact that has just come under the light grows a little, then settles */
|
|
.hc-t { transform-origin: 0 100%; }
|
|
.js .hc-art[data-on] .hc-t { animation: hc-grow 1.1s cubic-bezier(.16, 1, .3, 1) both; }
|
|
@keyframes hc-grow { 0% { transform: scale(1); } 35% { transform: scale(1.08); } 100% { transform: scale(1); } }
|
|
.hc-d { margin: 10.5px 0 0; max-width: 52ch; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .55); text-wrap: pretty; transition: color .3s cubic-bezier(0, 0, .2, 1); }
|
|
.hc-art[data-on] .hc-d { color: rgba(255, 255, 255, .92); }
|
|
|
|
/* chapter 06: its own light section, the module picker beside the module. The modules Hanzo lists, as one segmented
|
|
control; picking one changes the drawing only. */
|
|
.hs .hs-pick.v2-sec { padding: clamp(72px, 9vw, 116px) 0; }
|
|
.hs-pick-grid { align-items: center; }
|
|
.hs-pick-copy { grid-column: 1 / span 5; }
|
|
.hs-pick-t { margin: 0; font-size: 26px; font-weight: 497; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
|
|
.hs-pick-n { margin: 10.5px 0 0; color: var(--soft); }
|
|
.hs-pick-d { margin: 17px 0 0; max-width: 46ch; font-size: 16px; line-height: 1.6; color: light-dark(#525252, var(--muted-foreground)); text-wrap: pretty; }
|
|
.hs-pick-vis { grid-column: 6 / -1; position: relative; height: clamp(380px, 36vw, 520px); }
|
|
.hs-pick-vis .hm { transform: translateX(-12%); }
|
|
.hs-vendors { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 27px; max-width: 100%; }
|
|
.hs-vendors button { position: relative; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px light-dark(rgba(0, 0, 0, .12), var(--border-control)); font: 500 14px/1 var(--sans); color: light-dark(#525252, var(--muted-foreground)); cursor: pointer; white-space: nowrap; transition: color .15s cubic-bezier(0, 0, .2, 1), transform .09s cubic-bezier(.4, 0, .2, 1); }
|
|
.hs-vendors button:active { transform: scale(.98); }
|
|
.hs-vendors button[aria-selected='true'] { color: light-dark(#fafafa, var(--primary-foreground)); }
|
|
.hs-vendors button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
|
|
@media (hover: hover) { .hs-vendors button:not([aria-selected='true']):hover { color: var(--ink); background: light-dark(#f5f5f5, var(--muted)); } .hs-vendors button[aria-selected='true']:hover .hs-vendor-bg { background: light-dark(#404040, var(--primary-hover)); } }
|
|
.hs-vendor-bg { transition: background-color .15s cubic-bezier(0, 0, .2, 1); }
|
|
.hs-vendor-bg { position: absolute; inset: 0; border-radius: 999px; background: var(--ink); }
|
|
.hs-vendor-t { position: relative; }
|
|
.hs-ch .hm { --plate: #171717; --edge: rgba(255, 255, 255, .16); --ink2: #f5f5f5; }
|
|
.hs-ch .hm-handle { background: rgba(255, 255, 255, .05); }
|
|
.hs-ch .hm-module { background: linear-gradient(135deg, #262626, #171717); }
|
|
.hs-ch .hm-key { background: #000; border-color: rgba(255, 255, 255, .12); }
|
|
.hs-ch .hm-plate { box-shadow: 0 30px 40px -24px rgba(0, 0, 0, .8); }
|
|
.hs-ch .hm-plate.lit { box-shadow: 0 0 0 1px var(--glow), 0 0 70px -6px rgba(163, 163, 163, .55); }
|
|
.hs-exp { position: relative; height: 100%; }
|
|
.hs-exp .hm { transform: translateX(-10%); }
|
|
|
|
/* paste and ship: its own stage. The prompt keys in once in a graphite card; Copy answers when the line is whole. */
|
|
.hs .sp.v2-sec { padding: clamp(72px, 8vw, 116px) 0 0; }
|
|
.hs .sp-h { margin: 0 0 17px; font-size: 26px; line-height: 1.15; }
|
|
.hs-stack { display: flex; flex-direction: column; gap: 17px; max-width: 1120px; }
|
|
.hs-card { margin: 0; border-radius: 20px; }
|
|
.hs-card-1 { padding: 28px 28px 30px; background: light-dark(#f5f5f5, var(--muted)); }
|
|
.hs-card-1 .sp-d { margin: 0; }
|
|
.hs-ship-card { margin: 0; border-radius: 20px; background: #171717; color: #fafafa; overflow: hidden; }
|
|
/* the two cards stand in flow (no sticking, so the prompt card never rides over the words); they rise in on arrival */
|
|
.hs-ship-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
|
|
.hs-ship-card .x-copy { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 16px; border: 0; border-radius: 999px; font: 500 13px/1 var(--sans); letter-spacing: 0; text-transform: none; background: rgba(255, 255, 255, .08); color: #fafafa; cursor: pointer; transition: background-color .15s cubic-bezier(0, 0, .2, 1); }
|
|
@media (hover: hover) { .hs-ship-card .x-copy:hover { background: rgba(255, 255, 255, .16); } }
|
|
.hs-ship-card .x-copy:focus-visible { outline: 2px solid #fafafa; outline-offset: 2px; }
|
|
.hs-ship-card.done .x-copy { animation: hs-ready .9s cubic-bezier(.16, 1, .3, 1) both; }
|
|
@keyframes hs-ready { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); } }
|
|
.hs-ship-card pre { margin: 0; padding: clamp(24px, 3vw, 44px) clamp(20px, 3vw, 44px); min-height: 4.6em; font: 500 clamp(15px, 1.8vw, 26px)/1.5 var(--mono); letter-spacing: -.01em; white-space: pre-wrap; overflow-wrap: anywhere; color: #fafafa; }
|
|
.hs-ship-card pre:focus-visible { outline: 2px solid #fafafa; outline-offset: -4px; }
|
|
.hs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
.hs-rest { visibility: hidden; }
|
|
.hs-caret { display: inline-block; width: .55em; height: 1.1em; margin: 0 1px -.2em; background: #fafafa; animation: hs-blink 1s steps(1) infinite; }
|
|
.hs-caret.off { animation: hs-blink 1s steps(1) 2 forwards; }
|
|
@keyframes hs-blink { 50% { opacity: 0; } 100% { opacity: 0; } }
|
|
|
|
/* the close: the modules Hanzo names, set large, each taking the light in turn */
|
|
.hs .gi.hs-close { padding: clamp(72px, 8vw, 116px) 0; border-top: 0; }
|
|
.hs .gi-copy { grid-column: 1 / span 5; }
|
|
.hs .gi-h { margin: 0 0 17px; }
|
|
.hs .gi-lead { margin: 0 0 10.5px; }
|
|
.hs .gi-tag { margin: 0 0 17px; }
|
|
.hs-meta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; font: 500 13px/1 var(--mono); color: var(--soft); }
|
|
.hs-names { grid-column: 6 / -1; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
|
|
.hs-names li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: clamp(32px, 4.4vw, 64px); font-weight: 497; line-height: 1.05; letter-spacing: -.03em; color: light-dark(#d4d4d4, var(--text-disabled)); white-space: nowrap; transition: color .4s cubic-bezier(0, 0, .2, 1); }
|
|
.hs-names li span { display: inline-block; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
|
|
.hs-names li[data-on] { color: var(--ink); }
|
|
.hs-names li[data-on] span { transform: translateX(10px); }
|
|
@media (hover: hover) {
|
|
.hs .gi-chip { transition: border-color .15s cubic-bezier(0, 0, .2, 1), background-color .15s cubic-bezier(0, 0, .2, 1); }
|
|
.hs .x-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .15s cubic-bezier(0, 0, .2, 1); }
|
|
.hs .x-arrow:hover span { background-size: 100% 1px; }
|
|
.hs .x-arrow svg { transition: transform .15s cubic-bezier(0, 0, .2, 1); }
|
|
.hs .x-arrow:hover svg { transform: translateX(4px); }
|
|
}
|
|
/* the solid ask leans toward a fine pointer and its hover is more than a darker fill */
|
|
.hs .x-btn.solid { transition: background-color .15s cubic-bezier(0, 0, .2, 1), transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s cubic-bezier(0, 0, .2, 1); }
|
|
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
|
|
.hs .x-btn.solid:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .45); }
|
|
}
|
|
.hs .x-btn.solid:active { transform: translateY(1px); box-shadow: none; }
|
|
/* paused, the play mark is ink on white, as the pause mark is while playing; hover greys the white a little */
|
|
.hs .lx-pause[aria-pressed='true'] { background: var(--x-raised); color: var(--ink); }
|
|
/* the shared pause draws its mark in a fixed #0a0a0a; in dark it takes the page's ink */
|
|
html:not(.light) .hs .lx-pause { color: var(--ink); }
|
|
@media (hover: hover) { .hs .lx-pause:hover, .hs .lx-pause[aria-pressed='true']:hover { background: light-dark(#ededed, var(--secondary)); color: var(--ink); } }
|
|
|
|
@media (max-width: 900px) {
|
|
.hm { --s: 150px; --gk: .62; }
|
|
.hm-labels li { left: calc(50% + var(--s) * .5); max-width: 130px; font-size: 12px; gap: 6px; }
|
|
.hm-labels li i { width: 16px; }
|
|
.hs-hero-grid { min-height: 0; padding-block: 32px 44px; }
|
|
.hs-hero-obj { height: 360px; }
|
|
.hs-sign .hm { --s: 180px; }
|
|
/* phone hero: the callouts sit on the stack's edges (bytes above its left shoulder, the signature below its right),
|
|
the stack centred at its true size */
|
|
.hs-io { font-size: 12px; padding: 10px 12px; }
|
|
.hs-io.in { left: 0; top: calc(50% - 96px); transform: none; }
|
|
.hs-io.out { right: 0; top: calc(50% + 56px); bottom: auto; transform: none; }
|
|
.hs-call { left: 56px; font-size: 13px; gap: 8px; }
|
|
/* phone room: the module on top, the five facts under it; tap a fact to place the light */
|
|
.hc-in { display: block; padding-block: 24px 40px; }
|
|
/* one stage: the module sticks under the header while the facts scroll up beneath it */
|
|
.hc-vis { position: sticky; top: var(--x-top, 64px); z-index: 2; height: clamp(220px, 36svh, 300px); margin-inline: -16px; background: linear-gradient(#000 88%, rgba(0, 0, 0, 0)); }
|
|
.hc-copy { position: relative; z-index: 1; padding-bottom: 6svh; }
|
|
.hc-copy { padding-top: 16px; }
|
|
.hc-art { padding: 20px 16px 22px; margin: 0 -16px; }
|
|
.hc-t { font-size: 21px; }
|
|
.hc-d { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .62); }
|
|
.hs-exp .hm { transform: translateX(-18%); }
|
|
.hs-ch .hm { --s: 120px; --gk: .5; }
|
|
.hs-ch .hm-labels li { width: 96px; max-width: 96px; left: calc(50% + var(--s) * .55); font-size: 12px; line-height: 1.25; }
|
|
.hs-ch .hm-labels li i { width: 12px; }
|
|
/* phone picker: the words, then the module */
|
|
.hs-pick-copy, .hs-pick-vis { grid-column: 1 / -1; }
|
|
.hs-pick-vis { height: 300px; margin-top: 16px; }
|
|
.hs-pick-vis .hm { --s: 130px; transform: translateX(-16%); }
|
|
.hs-pick-vis .hm-labels li { width: 110px; max-width: 110px; }
|
|
/* the module pills: one row that scrolls sideways, the next one peeking */
|
|
.hs-vendors { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; margin-right: calc(-1 * var(--gutter, 16px)); padding-right: 16%; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
|
|
.hs-vendors::-webkit-scrollbar { display: none; }
|
|
.hs-vendors button { min-height: 44px; padding: 0 14px; scroll-snap-align: start; flex: none; }
|
|
.hs-ship-card { margin-top: 0; }
|
|
.hs-names { margin-top: 44px; }
|
|
.hs-names li { font-size: clamp(30px, 9.5vw, 44px); }
|
|
}
|
|
/* the five entrances, in the map's order. Each section gets data-in once a quarter of it is in view (Hsm.jsx). The
|
|
hidden start states apply only with scripts on and motion allowed, so scripts-off and reduced motion show every
|
|
section at rest. Transform, opacity and clip only; deck easings; no springs. */
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
/* 1 swing-door: the hero module swings in on a vertical hinge at its left edge */
|
|
.hs-door { height: 100%; transform-origin: 0 50%; transition: transform .9s cubic-bezier(.16, 1, .3, 1), opacity .5s cubic-bezier(0, 0, .2, 1); }
|
|
.js .hs-door:not([data-in]) { transform: perspective(1200px) rotateY(-72deg); opacity: 0; }
|
|
/* 2 pull-back: the room's contents start close up and pull back to show the whole */
|
|
.hc-in[data-entrance] { transform-origin: 50% 40%; transition: transform 1.1s cubic-bezier(.16, 1, .3, 1), opacity .6s cubic-bezier(0, 0, .2, 1); }
|
|
.js .hc-in[data-entrance]:not([data-in]) { transform: scale(1.45); opacity: 0; }
|
|
/* 3 venetian-type: each line slides in from alternating sides, 60ms apart */
|
|
.vt-l { transition: transform .7s cubic-bezier(.16, 1, .3, 1), opacity .5s cubic-bezier(0, 0, .2, 1); }
|
|
.js [data-entrance='venetian-type']:not([data-in]) .vt-l { opacity: 0; }
|
|
.js [data-entrance='venetian-type']:not([data-in]) .hs-pick-t, .js [data-entrance='venetian-type']:not([data-in]) .hs-pick-d, .js [data-entrance='venetian-type']:not([data-in]) .hs-pick-vis { transform: translateX(-64px); }
|
|
.js [data-entrance='venetian-type']:not([data-in]) .hs-pick-n, .js [data-entrance='venetian-type']:not([data-in]) .hs-vendors { transform: translateX(64px); }
|
|
.hs-pick-n.vt-l { transition-delay: .06s; } .hs-pick-d.vt-l { transition-delay: .12s; } .hs-vendors.vt-l { transition-delay: .18s; } .hs-pick-vis.vt-l { transition-delay: .24s; }
|
|
/* 4 stack: on arrival the words card rises, then the prompt card rises onto the stack under it */
|
|
.hs-card { transition: transform .6s cubic-bezier(.16, 1, .3, 1), opacity .5s cubic-bezier(0, 0, .2, 1); }
|
|
.js [data-entrance='sticky-stack']:not([data-in]) .hs-card { transform: translateY(40px); opacity: 0; }
|
|
.hs-card-2 { transition-delay: .12s; }
|
|
/* 5 domino: the close's lines tip into place one after another from a top hinge */
|
|
.dm { transform-origin: 50% 0; transition: transform .6s cubic-bezier(.16, 1, .3, 1), opacity .4s cubic-bezier(0, 0, .2, 1); }
|
|
.js [data-entrance='domino']:not([data-in]) .dm { transform: perspective(900px) rotateX(-88deg); opacity: 0; }
|
|
.hs-names li.dm { transition: transform .6s cubic-bezier(.16, 1, .3, 1), opacity .4s cubic-bezier(0, 0, .2, 1), color .4s cubic-bezier(0, 0, .2, 1); }
|
|
.gi-copy .dm:nth-child(2) { transition-delay: .08s; } .gi-copy .dm:nth-child(3) { transition-delay: .16s; } .gi-copy .dm:nth-child(4) { transition-delay: .24s; } .gi-copy .dm:nth-child(5) { transition-delay: .32s; }
|
|
.hs-names .dm:nth-child(1) { transition-delay: .4s; } .hs-names .dm:nth-child(2) { transition-delay: .48s; } .hs-names .dm:nth-child(3) { transition-delay: .56s; } .hs-names .dm:nth-child(4) { transition-delay: .64s; }
|
|
}
|
|
.hs-door { height: 100%; }
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.hs-settle { transform: none !important; }
|
|
.hs-sign .hm { transform: none; transition: none; }
|
|
.hs-pulse { display: none; }
|
|
.hc { clip-path: none !important; }
|
|
.hc-art { transition: none; }
|
|
/* the spotlight at rest: no light, every fact at full ink, every plate lit */
|
|
.hc-light { display: none; }
|
|
.hc-art .hc-t { color: #fff; }
|
|
.hc-art .hc-d { color: rgba(255, 255, 255, .92); }
|
|
.hc-art[data-on] { background: none; }
|
|
.hs-ch .hm-plate { border-color: var(--glow); box-shadow: 0 0 0 1px var(--glow); }
|
|
.hm-plate, .hm-labels li, .hm-core i { transition: none; animation: none; }
|
|
.hs-pause { display: none; }
|
|
.hs-call { left: 0; }
|
|
.js .hc-art[data-on] .hc-t { animation: none; }
|
|
.hs-caret { display: none; }
|
|
.hs-names li, .hs-names li span { transition: none; }
|
|
}
|
|
|
|
/* the live object's pause control, docked to the module: bottom-left, on the call line */
|
|
.hs-hero-obj .lp-host { position: relative; height: 100%; }
|
|
.hs .hs-pause { top: auto; right: auto; left: 0; bottom: 14px; }
|
|
|
|
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
|
|
/* a phone's room is far taller than the screen: it pulls back from a little closer, never from black */
|
|
.js .hc-in[data-entrance]:not([data-in]) { transform: scale(1.08); opacity: 0; }
|
|
}
|
|
/* dark: the selected vendor carries the same ink as its sliding pill, so its primary-foreground label sits on its own fill;
|
|
the names not yet lit take Hanzo's tertiary text */
|
|
html:not(.light) .hs-vendors button[aria-selected='true'] { background: var(--ink); }
|
|
html:not(.light) .hs-names li { color: var(--text-tertiary); }
|
|
html:not(.light) .hs-names li[data-on] { color: var(--ink); }
|