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_01P5YBdwnSSVASfNEEi92hQ4
300 lines
30 KiB
CSS
300 lines
30 KiB
CSS
/* Object Storage, round 3 (MASTER ยง3): the deck's neutral ramp only; flat fills or 1px hairlines, never both; no
|
||
shadows; radii 24 tiles, 16 volumes and roles (concentric inside the 24 stage), 6 chips and shards, full pills; press
|
||
.97 in 90ms; hover changes fill or ink. A data shard is a filled ink tile, a parity shard an ink outline, a lost one a
|
||
dashed grey hole; what still reads is told by the tiles coming back and an ink chip, not by a colour. */
|
||
|
||
/* hero: title left (8), lede and ask right (5), bottom-aligned; then the object on one flat quiet stage */
|
||
.s3-hero { padding: clamp(32px, 4vw, 56px) 0 clamp(72px, 9vw, 120px); }
|
||
.s3-hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); column-gap: clamp(24px, 4vw, 56px); align-items: end; }
|
||
.s3-hero-r { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
|
||
.s3-sub { color: light-dark(#0a0a0a, var(--foreground)); }
|
||
.s3-acts { display: flex; gap: 8px 24px; align-items: center; flex-wrap: wrap; }
|
||
|
||
.s3-kept { margin-top: clamp(24px, 3vw, 40px); border-radius: 24px; background: light-dark(#f5f5f5, var(--surface-2)); overflow: hidden; }
|
||
/* the stage's own top row: pause first, what it is, the legend, what you are pointing at, Replay */
|
||
.s3-bar { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; min-height: 64px; padding: 10px 20px 0 10px; }
|
||
.s3-name { color: light-dark(#0a0a0a, var(--foreground)); }
|
||
.s3-legend { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; font: 500 13px/1 var(--mono); color: light-dark(#525252, var(--text-secondary)); }
|
||
.s3-legend span { display: inline-flex; align-items: center; gap: 8px; }
|
||
.s3-legend i { width: 18px; height: 18px; border-radius: 6px; background: light-dark(#0a0a0a, var(--muted-foreground)); }
|
||
.s3-legend i.p { background: none; box-shadow: inset 0 0 0 2px light-dark(#0a0a0a, var(--foreground)); }
|
||
.s3-legend i.x { background: none; box-shadow: none; outline: 1.5px dashed light-dark(#737373, var(--muted-foreground)); outline-offset: -1.5px; }
|
||
.s3-mine { margin-left: auto; font: 500 13px/1 var(--mono); color: light-dark(#0a0a0a, var(--foreground)); }
|
||
.s3-again { height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid light-dark(rgba(0, 0, 0, .14), var(--border-control)); background: none; font: 500 14px/1 var(--sans); color: light-dark(#0a0a0a, var(--foreground)); cursor: pointer; touch-action: manipulation; transition: border-color .15s var(--e-out), background-color .15s var(--e-out), transform .15s var(--e-out); }
|
||
.s3-again:active { transform: scale(.97); transition-duration: .09s; }
|
||
|
||
.s3-field { position: relative; height: clamp(260px, 21vw, 300px); }
|
||
.s3-fan { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
|
||
.s3-fan path { fill: none; stroke: light-dark(rgba(0, 0, 0, .1), var(--border)); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .4s var(--e-out), stroke-width .3s var(--e-out); }
|
||
.s3-fan path.on { stroke: light-dark(rgba(0, 0, 0, .4), var(--border-control)); stroke-width: 1.3; }
|
||
.s3-fan path.cut { stroke: light-dark(rgba(0, 0, 0, .14), var(--border-control)); stroke-dasharray: 3 5; }
|
||
.s3-fan path.hov { stroke: light-dark(#0a0a0a, var(--foreground)); stroke-width: 2; }
|
||
.s3-obj { position: absolute; left: 2%; top: 6%; width: 15%; min-width: 150px; height: 88%; display: flex; flex-direction: column; padding: 16px; border-radius: 16px; background: light-dark(#fff, var(--surface-1)); }
|
||
.s3-k { margin: 0; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: light-dark(#737373, var(--muted-foreground)); }
|
||
.s3-file { flex: 1; display: grid; grid-template-columns: repeat(4, 22px); grid-auto-rows: 22px; gap: 6px; align-content: center; justify-content: center; }
|
||
.s3-shard { display: block; width: 22px; height: 22px; border-radius: 6px; background: light-dark(#0a0a0a, var(--muted-foreground)); }
|
||
.s3-shard.p { background: light-dark(#fff, var(--surface-1)); box-shadow: inset 0 0 0 2.5px light-dark(#0a0a0a, var(--foreground)); }
|
||
.s3-ghost { display: block; width: 22px; height: 22px; border-radius: 6px; border: 1.5px dashed light-dark(#d4d4d4, var(--border-control)); transition: background-color .3s var(--e-out), border-color .3s var(--e-out), box-shadow .3s var(--e-out); transition-delay: calc(var(--i) * 30ms); }
|
||
.s3-ghost.back { border: 0; background: light-dark(#0a0a0a, var(--muted-foreground)); animation: s3-fill .3s var(--lx-ease) both; animation-delay: calc(var(--i) * 30ms); }
|
||
.s3-ghost.p.back { background: light-dark(#fff, var(--surface-1)); box-shadow: inset 0 0 0 2.5px light-dark(#0a0a0a, var(--foreground)); }
|
||
@keyframes s3-fill { from { transform: scale(.6); } }
|
||
.s3-read { align-self: flex-start; margin: 0; padding: 7px 10px; border-radius: 999px; font: 500 13px/1 var(--mono); color: light-dark(#737373, var(--muted-foreground)); transition: background-color .3s var(--e-out), color .3s var(--e-out); }
|
||
.s3-obj.reads .s3-read { background: light-dark(#0a0a0a, var(--primary)); color: light-dark(#fff, var(--primary-foreground)); }
|
||
.s3-vols { position: absolute; left: 36%; right: 2%; top: 6%; height: 88%; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; gap: 8px; }
|
||
.s3-vol { position: relative; display: grid; place-items: center; border: 0; border-radius: 16px; background: light-dark(#fff, var(--surface-1)); cursor: pointer; touch-action: manipulation; transition: background-color .15s var(--e-out), transform .15s var(--e-out); }
|
||
.s3-vol:active:not(:disabled) { transform: scale(.97); transition-duration: .09s; }
|
||
.s3-vol:disabled { cursor: default; }
|
||
.s3-vn { position: absolute; left: 10px; top: 10px; font: 500 13px/1 var(--mono); color: light-dark(#737373, var(--muted-foreground)); transition: color .15s var(--e-out); }
|
||
.s3-slot { width: 22px; height: 22px; }
|
||
/* pointing at a volume: its tile fills grey, its name and its line turn ink (no lift, no scale) */
|
||
.s3-vol.hov:not(:disabled) { background: light-dark(#e4e4e7, var(--surface-3)); }
|
||
.s3-vol.hov .s3-vn { color: light-dark(#0a0a0a, var(--foreground)); }
|
||
.s3-vol.gone { background: light-dark(#ededed, var(--surface-3)); outline: 1.5px dashed light-dark(#737373, var(--muted-foreground)); outline-offset: -1.5px; }
|
||
.s3-vol.gone .s3-vn { color: light-dark(#525252, var(--text-secondary)); text-decoration: line-through; }
|
||
.s3-vol > b { position: absolute; inset: 0; display: grid; place-items: center; font: 400 21px/1 var(--sans); color: light-dark(#525252, var(--text-secondary)); }
|
||
|
||
/* the chapter count is Hanzo's own caption: set under the chapter title, never above it (MASTER part 7) */
|
||
.s3 .lx-pin-step { display: flex; flex-direction: column; }
|
||
.s3 .lx-pin-t { order: 0; margin-top: 0; }
|
||
.s3 .lx-pin-k { order: 1; margin-top: 12px; }
|
||
.s3 .lx-pin-d { order: 2; }
|
||
|
||
/* every text link presses (the kit's lx-text has no :active) */
|
||
.s3 .lx-text { transition: text-decoration-color .15s var(--e-out), transform .15s var(--e-out); }
|
||
.s3 .lx-text:active { transform: translateY(1px); transition-duration: .09s; }
|
||
|
||
/* the chapters' diagram: a hairline on paper; a lit role is outlined in ink, a quiet one a flat grey tile */
|
||
.s3-roles { border-radius: 24px; border: 1px solid var(--line); overflow: hidden; }
|
||
.s3-dia { position: relative; height: min(380px, 44svh); margin: 0 4%; }
|
||
.s3-dia > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
|
||
.s3-dia line { stroke: light-dark(rgba(0, 0, 0, .18), var(--border-control)); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
|
||
.s3-dia line.proto { stroke: light-dark(#0a0a0a, var(--foreground)); stroke-width: 2; stroke-dasharray: 6 6; animation: s3-draw .4s var(--e-out) both; }
|
||
@keyframes s3-draw { from { opacity: 0; } }
|
||
.s3-role { position: absolute; width: 40%; height: 34%; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 18px 20px; border-radius: 16px; background: light-dark(#f5f5f5, var(--surface-2)); transition: background-color .3s var(--e-out), box-shadow .3s var(--e-out); transition-delay: calc(var(--i) * 60ms); }
|
||
.s3-role:nth-of-type(1) { left: 0; top: 8%; }
|
||
.s3-role:nth-of-type(2) { right: 0; top: 8%; }
|
||
.s3-role:nth-of-type(3) { left: 0; bottom: 8%; }
|
||
.s3-role:nth-of-type(4) { right: 0; bottom: 8%; }
|
||
.s3-role.on { background: light-dark(#fff, var(--surface-1)); box-shadow: inset 0 0 0 1.5px light-dark(#0a0a0a, var(--foreground)); }
|
||
.s3-role b { font-weight: 497; font-size: 21px; letter-spacing: -.015em; color: light-dark(#525252, var(--text-secondary)); transition: color .3s var(--e-out); }
|
||
.s3-role.on b { color: light-dark(#0a0a0a, var(--foreground)); }
|
||
.s3-role span { font-size: 15px; color: light-dark(#525252, var(--text-secondary)); }
|
||
.s3-lock { position: absolute; right: 16px; top: 16px; color: light-dark(#0a0a0a, var(--foreground)); opacity: 0; transform: scale(.6); transition: opacity .3s var(--e-out), transform .4s var(--lx-ease); }
|
||
.s3-lock.on { opacity: 1; transform: none; }
|
||
.s3-bin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 999px; background: light-dark(#0a0a0a, var(--primary)); color: light-dark(#fff, var(--primary-foreground)); font: 500 14px/1 var(--mono); white-space: nowrap; transition: background-color .3s var(--e-out), color .3s var(--e-out), box-shadow .3s var(--e-out); }
|
||
.s3-roles[data-step='3'] .s3-bin { background: light-dark(#fff, var(--surface-1)); color: light-dark(#0a0a0a, var(--foreground)); box-shadow: inset 0 0 0 2px light-dark(#0a0a0a, var(--foreground)); }
|
||
.s3-strip { display: grid; place-items: center; min-height: 104px; padding: 18px 24px; border-top: 1px solid var(--line); font: 500 15px/1.3 var(--mono); color: light-dark(#737373, var(--muted-foreground)); }
|
||
html.js .s3-strip { animation: s3-up .3s var(--lx-ease) both; }
|
||
@keyframes s3-up { from { opacity: 0; transform: translateY(16px); } }
|
||
.s3-strip p { margin: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
|
||
.s3-strip b { font-weight: 600; color: light-dark(#0a0a0a, var(--foreground)); }
|
||
.s3-strip s { color: light-dark(#737373, var(--muted-foreground)); text-decoration-color: light-dark(#0a0a0a, var(--foreground)); text-decoration-thickness: 2px; }
|
||
.s3-kms { padding: 9px 13px; border-radius: 8px; background: light-dark(#0a0a0a, var(--primary)); color: light-dark(#fff, var(--primary-foreground)); }
|
||
.s3-arrow { width: 40px; height: 2px; background: light-dark(#0a0a0a, var(--muted-foreground)); position: relative; }
|
||
.s3-arrow::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid light-dark(#0a0a0a, var(--foreground)); border-right: 0; }
|
||
.s3-cells { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
|
||
.s3-cells i { width: 22px; height: 22px; border-radius: 6px; background: light-dark(#0a0a0a, var(--muted-foreground)); }
|
||
.s3-cells i.p { background: light-dark(#fff, var(--surface-1)); box-shadow: inset 0 0 0 2.5px light-dark(#0a0a0a, var(--foreground)); }
|
||
.s3-cells i.x { background: none; box-shadow: none; outline: 1.5px dashed light-dark(#737373, var(--muted-foreground)); outline-offset: -1.5px; }
|
||
.s3-cells b { margin-left: 12px; color: light-dark(#0a0a0a, var(--foreground)); }
|
||
/* chapter 3 plays it rather than showing it: the four go dark one after another, then "still reads" lands */
|
||
.s3-cells i.x { animation: s3-lose 1.6s var(--e-io, cubic-bezier(.4, 0, .2, 1)) both; }
|
||
.s3-cells i.x:nth-of-type(n) { animation-delay: calc(var(--k, 0) * 180ms + 300ms); }
|
||
.s3-cells b { animation: s3-land .4s cubic-bezier(.16, 1, .3, 1) both 1.4s; }
|
||
@keyframes s3-lose { 0%, 20% { background: light-dark(#0a0a0a, var(--muted-foreground)); outline-color: transparent; } 100% { background: none; outline-color: light-dark(#737373, var(--text-tertiary)); } }
|
||
@keyframes s3-land { from { opacity: 0; transform: translate3d(0, 8px, 0); } }
|
||
/* a refused fifth tap: the tile nudges sideways once; the ten that survive stay bright (never disabled-grey) */
|
||
.s3-vol.no { animation: s3-no .3s cubic-bezier(.4, 0, .2, 1); }
|
||
@keyframes s3-no { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
|
||
@media (max-width: 899px) { .s3-read { white-space: nowrap; } }
|
||
.s3-read { max-width: 100%; }
|
||
/* the black room: one figure is the moment โ "4 can be lost, and it still reads", the page's whole promise, at 64 in a
|
||
wider column โ and the other three rest at section size beside it (the hero already counted ten and four) */
|
||
.s3-spec .lx-spec-row:not(:nth-child(3)) .lx-spec-v { font-size: 26px !important; }
|
||
.s3-spec .lx-spec-row:nth-child(3) .lx-spec-v { font-size: 64px !important; }
|
||
.s3-spec .lx-spec-row:nth-child(3) .lx-spec-l { color: #fafafa; }
|
||
@media (min-width: 900px) { .s3-spec .lx-spec-rows { grid-template-columns: 1fr 1fr 1.7fr 1fr; } }
|
||
@media (prefers-reduced-motion: reduce) { .s3-cells i.x, .s3-cells b, .s3-vol.no { animation: none; } }
|
||
|
||
/* the black room: the figures (one at 64, the room's one big thing), then the prompt */
|
||
.s3-room { padding: clamp(56px, 7vw, 120px) 0; }
|
||
.s3-spec { margin-bottom: clamp(72px, 8vw, 116px); }
|
||
.s3 .cf-paste.dark { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
|
||
.s3 .cf-paste-t { font-size: 26px; font-weight: 497; letter-spacing: -.02em; line-height: 1.15; }
|
||
.s3 .cf-paste.dark .cf-paste-t { color: #fafafa; }
|
||
.s3 .cf-paste.dark .cf-paste-d { color: rgba(255, 255, 255, .78); }
|
||
.s3 .cf-paste.dark .cf-paste-box { border: 0; border-radius: 16px; background: #171717; color: #fafafa; }
|
||
.s3 .cf-paste-bar { border-bottom-color: rgba(255, 255, 255, .1); }
|
||
.s3 .cf-api { background: #262626; }
|
||
.s3 .cf-paste-bar .x-copy { background: #262626; border-color: rgba(255, 255, 255, .1); color: #fafafa; }
|
||
.s3 .cf-caret { background: #fafafa; }
|
||
.s3 .x-copy-t { font-size: 13px; }
|
||
|
||
@media (hover: hover) {
|
||
.s3-vol:not(:disabled):hover { background: light-dark(#e4e4e7, var(--surface-3)); }
|
||
.s3-again:hover { border-color: light-dark(#0a0a0a, var(--foreground)); background: light-dark(#ededed, var(--surface-3)); }
|
||
}
|
||
|
||
@media (max-width: 899px) {
|
||
/* phone floor (14px) for the kit's lowercase mono captions on this page */
|
||
.s3 .cf-paste-k, .s3 .cf-api, .s3 .cf-api i, .s3 .lx-close-facts { font-size: 14px; }
|
||
.s3-hero { padding: 20px 0 64px; }
|
||
.s3-hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
|
||
.s3-hero-r { gap: 20px; }
|
||
.s3-kept { margin-top: 28px; border-radius: 16px; }
|
||
.s3-bar { padding: 8px 12px 0 8px; gap: 6px 14px; }
|
||
.s3-legend { order: 3; width: 100%; padding: 0 0 4px 4px; gap: 6px 14px; }
|
||
.s3-mine { margin-left: 0; }
|
||
.s3-field { height: 330px; }
|
||
.s3-fan { display: none; }
|
||
.s3-obj { left: 12px; right: 12px; top: 12px; width: auto; min-width: 0; height: 104px; padding: 12px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 6px 12px; border-radius: 12px; }
|
||
.s3-obj .s3-k { grid-column: 1; }
|
||
/* the shards sit top-right and the readout has the whole bottom row: a longer readout never moves the shards (CLS) */
|
||
.s3-file { grid-column: 2; grid-row: 1; align-self: start; grid-template-columns: repeat(7, 18px); grid-auto-rows: 18px; gap: 5px; justify-content: end; }
|
||
.s3-read { grid-column: 1 / -1; grid-row: 2; align-self: end; }
|
||
.s3-shard, .s3-slot, .s3-ghost { width: 18px; height: 18px; border-radius: 6px; }
|
||
.s3-vols { left: 12px; right: 12px; top: 128px; height: 190px; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(3, 1fr); gap: 6px; }
|
||
.s3-vol { border-radius: 12px; }
|
||
.s3-vn { left: 7px; top: 7px; }
|
||
.s3-k { font-size: 12px; }
|
||
.s3-read, .s3-vn, .s3-legend, .s3-mine { font-size: 14px; }
|
||
.s3-roles { border-radius: 16px; }
|
||
.s3-dia { height: calc(38svh - 72px); min-height: 150px; margin: 0 12px; }
|
||
.s3-role { padding: 10px 12px; width: 44%; height: 38%; gap: 2px; border-radius: 12px; }
|
||
.s3-role b { font-size: 16px; }
|
||
.s3-role span { display: none; }
|
||
.s3-bin { padding: 7px 10px; font-size: 14px; }
|
||
.s3-lock { right: 8px; top: 8px; }
|
||
.s3-strip { min-height: 72px; padding: 10px 12px; font-size: 14px; }
|
||
.s3-cells { gap: 4px; }
|
||
.s3-cells i { width: 14px; height: 14px; border-radius: 6px; }
|
||
.s3-cells b { margin-left: 6px; }
|
||
.s3-spec { margin-bottom: 64px; }
|
||
.s3 .cf-paste.dark { grid-template-columns: minmax(0, 1fr); }
|
||
.s3 .x-copy-t { font-size: 14px; }
|
||
}
|
||
@media (prefers-reduced-motion: reduce) { html.js .s3-strip, .s3-dia line.proto, .s3-ghost.back { animation: none; } .s3-fan path, .s3-ghost, .s3-role { transition: none; } }
|
||
|
||
/* ---------- the peel: the facts (5) beside the stack of four roles that lifts apart and closes (8) ---------- */
|
||
.s3-peel-sec { padding: clamp(40px, 6vw, 96px) 0 clamp(72px, 9vw, 120px); }
|
||
.s3-peel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
|
||
.s3-peel-h { font-size: 44px; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 28px; }
|
||
.s3-fl { list-style: none; margin: 0; padding: 0; }
|
||
.s3-fl li { padding: 16px 0 18px; border-top: 1px solid var(--line); }
|
||
.s3-ft { margin: 0; font-size: 17px; font-weight: 497; line-height: 1.3; }
|
||
.s3-ft button { display: block; width: 100%; min-height: 44px; margin: -10px 0 -6px; padding: 0; border: 0; background: none; font: inherit; color: light-dark(#737373, var(--muted-foreground)); text-align: left; cursor: pointer; touch-action: manipulation; transition: color .15s cubic-bezier(0, 0, .2, 1), transform .15s cubic-bezier(0, 0, .2, 1); }
|
||
.s3-ft button:active { transform: translateY(1px); transition-duration: .09s; }
|
||
.s3-fl li.on .s3-ft button { color: light-dark(#0a0a0a, var(--foreground)); }
|
||
@media (hover: hover) { .s3-ft button:hover { color: light-dark(#0a0a0a, var(--foreground)); } }
|
||
.s3-fk { margin: 2px 0 8px; color: light-dark(#737373, var(--muted-foreground)); }
|
||
.s3-fd { margin: 0; font-size: 15px; line-height: 1.55; color: light-dark(#737373, var(--muted-foreground)); transition: color .3s cubic-bezier(.4, 0, .2, 1); }
|
||
.s3-fl li.on .s3-fd { color: light-dark(#525252, var(--text-secondary)); }
|
||
|
||
.s3-stage { --pw: 230px; --zo: 92px; --zc: 11px; --cx: 34%; --cy: 336px; position: relative; height: 520px; border-radius: 24px; background: light-dark(#f5f5f5, var(--surface-2)); overflow: hidden; }
|
||
.s3-stage-bar { position: absolute; top: 10px; left: 10px; z-index: 2; }
|
||
.s3-scene { position: absolute; left: 0; right: 0; top: 0; height: 440px; }
|
||
/* one rotated plane (orthographic); each layer is one translateZ inside it */
|
||
.s3-plane { position: absolute; left: calc(var(--cx) - var(--pw) / 2); top: calc(var(--cy) - var(--pw) / 2); width: var(--pw); height: var(--pw); transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(-45deg); }
|
||
.s3-layer { position: absolute; inset: 0; border-radius: 14px; background: light-dark(#fff, var(--surface-1)); box-shadow: inset 0 0 0 1px light-dark(rgba(0, 0, 0, .2), var(--border-control)); transform: translateZ(calc(var(--b) * var(--zc))); transition: transform .9s cubic-bezier(.4, 0, .2, 1), box-shadow .15s cubic-bezier(0, 0, .2, 1); transition-delay: calc((3 - var(--b)) * 50ms); }
|
||
.s3-stage[data-open] .s3-layer { transform: translateZ(calc(var(--b) * var(--zo))); transition-delay: calc(var(--b) * 50ms); }
|
||
.s3-layer.hot, .s3-stage[data-ph='1'] .s3-layer { box-shadow: inset 0 0 0 1.5px light-dark(#0a0a0a, var(--foreground)); }
|
||
.s3-stage[data-ph='2'] .s3-layer.vs, .s3-stage[data-ph='3'] .s3-layer.vs { box-shadow: inset 0 0 0 2px light-dark(#0a0a0a, var(--foreground)); }
|
||
.s3-lname { position: absolute; left: 14px; bottom: 12px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: light-dark(#737373, var(--muted-foreground)); }
|
||
/* what each layer carries, drawn on it */
|
||
/* the shards sit on the layer's front corner, the part the layers above never cover */
|
||
.s3-lshards { position: absolute; left: 34%; right: 10px; bottom: 34px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
|
||
.s3-lshards i { aspect-ratio: 1; border-radius: 5px; background: light-dark(#0a0a0a, var(--muted-foreground)); transition: background-color .4s cubic-bezier(.4, 0, .2, 1), box-shadow .4s cubic-bezier(.4, 0, .2, 1); }
|
||
.s3-lshards i.p { background: light-dark(#fff, var(--surface-1)); box-shadow: inset 0 0 0 2px light-dark(#0a0a0a, var(--foreground)); }
|
||
.s3-lshards i.x { background: light-dark(#f5f5f5, var(--surface-2)); box-shadow: inset 0 0 0 1.5px light-dark(#a3a3a3, var(--text-tertiary)); transition-delay: calc(var(--k) * 180ms + 300ms); }
|
||
.s3-lmap { position: absolute; left: 22%; right: 22%; top: 22%; bottom: 30%; display: grid; grid-template-columns: repeat(3, 1fr); place-items: center; }
|
||
.s3-lmap i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px light-dark(#0a0a0a, var(--foreground)); }
|
||
.s3-lmap i:nth-child(5) { background: light-dark(#0a0a0a, var(--muted-foreground)); }
|
||
.s3-ltree { position: absolute; left: 18%; top: 20%; right: 20%; display: flex; flex-direction: column; gap: 10px; }
|
||
.s3-ltree i { height: 8px; border-radius: 999px; background: light-dark(#d4d4d4, var(--surface-3)); }
|
||
.s3-ltree i:nth-child(1) { width: 70%; background: light-dark(#0a0a0a, var(--muted-foreground)); }
|
||
.s3-ltree i:nth-child(2) { width: 56%; margin-left: 14%; }
|
||
.s3-ltree i:nth-child(3) { width: 44%; margin-left: 14%; }
|
||
.s3-ltree i:nth-child(4) { width: 60%; margin-left: 28%; }
|
||
.s3-lgw { position: absolute; left: 20%; right: 20%; top: 24%; height: 34%; border-radius: 10px; box-shadow: inset 0 0 0 1.5px light-dark(#0a0a0a, var(--foreground)); display: grid; place-items: center; }
|
||
.s3-lgw i { width: 46%; height: 8px; border-radius: 999px; background: light-dark(#0a0a0a, var(--muted-foreground)); }
|
||
.s3-llock { position: absolute; right: 14px; bottom: 10px; width: 22px; height: 22px; color: light-dark(#0a0a0a, var(--foreground)); opacity: 0; transform: scale(.6); transition: opacity .3s cubic-bezier(0, 0, .2, 1), transform .3s cubic-bezier(.16, 1, .3, 1); }
|
||
.s3-stage[data-ph='2'] .s3-llock { opacity: 1; transform: none; }
|
||
/* one binary protocol: four posts stand between the layers */
|
||
.s3-posts { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
|
||
.s3-posts i { position: absolute; width: 2px; height: calc(3 * var(--zo)); background: repeating-linear-gradient(light-dark(#0a0a0a, var(--foreground)) 0 6px, transparent 6px 11px); transform-origin: 50% 0; transform: rotateX(90deg); opacity: 0; transition: opacity .3s cubic-bezier(0, 0, .2, 1); }
|
||
.s3-posts i:nth-child(1) { left: 8%; top: 8%; }
|
||
.s3-posts i:nth-child(2) { left: 92%; top: 8%; }
|
||
.s3-posts i:nth-child(3) { left: 8%; top: 92%; }
|
||
.s3-posts i:nth-child(4) { left: 92%; top: 92%; }
|
||
.s3-stage[data-ph='4'] .s3-posts i { opacity: 1; transition-delay: .2s; }
|
||
/* the role names beside the stack ride the layers' heights in 2D (orthographic: z ร sin 56ยฐ) */
|
||
.s3-tags { list-style: none; margin: 0; padding: 0; position: absolute; left: calc(var(--cx) + var(--pw) * .78); right: 16px; top: calc(var(--cy) - 22px); }
|
||
.s3-tags li { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 1px solid light-dark(rgba(0, 0, 0, .2), var(--border-control)); opacity: 0; transform: translateY(calc(var(--b) * var(--zc) * -.829)); transition: transform .9s cubic-bezier(.4, 0, .2, 1), opacity .3s cubic-bezier(0, 0, .2, 1), border-color .15s cubic-bezier(0, 0, .2, 1); }
|
||
.s3-stage[data-open] .s3-tags li { opacity: 1; transform: translateY(calc(var(--b) * var(--zo) * -.829)); transition-delay: calc(var(--b) * 50ms), .45s, 0s; }
|
||
.s3-tags b { font-size: 17px; font-weight: 497; color: light-dark(#0a0a0a, var(--foreground)); }
|
||
.s3-tags span { font-size: 14px; color: light-dark(#525252, var(--text-secondary)); }
|
||
.s3-tags li:hover { border-color: light-dark(#0a0a0a, var(--foreground)); }
|
||
.s3-one { position: absolute; left: var(--cx); top: calc(var(--cy) - 36px); transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 999px; background: light-dark(#0a0a0a, var(--primary)); color: light-dark(#fff, var(--primary-foreground)); font: 500 14px/1 var(--mono); white-space: nowrap; transition: opacity .3s cubic-bezier(0, 0, .2, 1); }
|
||
.s3-stage[data-open] .s3-one { opacity: 0; }
|
||
.s3-stage .s3-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; min-height: 0; padding: 0 20px; background: light-dark(#f5f5f5, var(--surface-2)); border-top: 1px solid light-dark(rgba(0, 0, 0, .08), var(--border)); }
|
||
.s3-ok { padding: 7px 10px; border-radius: 999px; background: light-dark(#0a0a0a, var(--primary)); color: light-dark(#fff, var(--primary-foreground)) !important; }
|
||
@media (max-width: 899px) {
|
||
.s3-peel { grid-template-columns: minmax(0, 1fr); gap: 28px; }
|
||
.s3-peel-h { font-size: 32px; margin-bottom: 16px; }
|
||
.s3-fd { font-size: 16px; }
|
||
.s3-stage { --pw: 140px; --zo: 58px; --zc: 8px; --cx: 31%; --cy: 252px; height: 400px; border-radius: 16px; }
|
||
.s3-scene { height: 320px; }
|
||
.s3-lname, .s3-lmap, .s3-ltree i:nth-child(n + 3) { display: none; }
|
||
.s3-lshards { left: 30%; right: 6px; bottom: 10px; gap: 3px; }
|
||
.s3-lshards i { border-radius: 3px; }
|
||
.s3-tags { left: calc(var(--cx) + var(--pw) * .76); right: 8px; }
|
||
.s3-tags li { padding-left: 10px; }
|
||
.s3-tags b { font-size: 15px; }
|
||
.s3-tags span { display: none; }
|
||
.s3-stage .s3-strip { height: 72px; padding: 0 12px; font-size: 14px; }
|
||
}
|
||
@media (prefers-reduced-motion: reduce) { .s3-layer, .s3-tags li, .s3-lshards i, .s3-posts i, .s3-llock, .s3-one { transition: none !important; } }
|
||
|
||
/* ---------- the five entrances (s3/S3Enter.jsx), each once; final state with JS off or reduced motion ---------- */
|
||
/* text-mask-film: a strip of shards runs through the heading's letters like film through a gate, then the ink returns */
|
||
.s3-film[data-fm='armed'], .s3-film[data-fm='play'] { background: repeating-linear-gradient(90deg, light-dark(#0a0a0a, var(--foreground)) 0 14px, light-dark(#d4d4d4, var(--surface-3)) 14px 18px, light-dark(#525252, var(--muted-foreground)) 18px 30px, light-dark(#e5e5e5, var(--surface-3)) 30px 33px) 0 0 / 66px 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
|
||
.s3-film[data-fm='play'] { animation: s3-film 1.8s cubic-bezier(.4, 0, .2, 1) forwards; }
|
||
@keyframes s3-film { 0% { background-position: 0 0; } 85% { background-position: 660px 0; -webkit-text-fill-color: transparent; } 100% { background-position: 660px 0; -webkit-text-fill-color: var(--ink); } }
|
||
/* iris: the peel's stage opens on a circle from its centre */
|
||
.s3-stage[data-iris='armed'] { clip-path: circle(0% at 50% 50%); }
|
||
.s3-stage[data-iris='play'] { clip-path: circle(75% at 50% 50%); transition: clip-path .9s cubic-bezier(.4, 0, .2, 1); }
|
||
/* shutter: two graphite bars meet over the figures, then part to the top and bottom edges */
|
||
.s3-shut { position: relative; }
|
||
.s3-shut-b { position: absolute; left: 0; right: 0; height: 50%; background: #171717; z-index: 2; pointer-events: none; }
|
||
.s3-shut-b.t { top: 0; transform-origin: 50% 0; }
|
||
.s3-shut-b.b { bottom: 0; transform-origin: 50% 100%; }
|
||
.s3-shut[data-shut='play'] .s3-shut-b { animation: s3-shut .8s cubic-bezier(.4, 0, .2, 1) .1s forwards; }
|
||
@keyframes s3-shut { to { transform: scaleY(0); } }
|
||
/* cursor-lens: a round lens over the prompt, magnifying an inert copy */
|
||
.s3-lens-box { position: relative; min-width: 0; }
|
||
.s3-lens { position: absolute; left: 0; top: 0; width: 168px; height: 168px; margin: -84px 0 0 -84px; border-radius: 50%; overflow: hidden; pointer-events: none; background: #000; transform: translate(var(--x, 0px), var(--y, 0px)); opacity: 0; transition: opacity .3s cubic-bezier(0, 0, .2, 1); z-index: 2; }
|
||
.s3-lens::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
|
||
.s3-lens[data-on='1'] { opacity: 1; }
|
||
.s3-lens-copy { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: translate(calc(84px - var(--x, 0px) * 1.6), calc(84px - var(--y, 0px) * 1.6)) scale(1.6); }
|
||
/* grid-wave: tiles over the close's drawing ripple away by distance from the cursor */
|
||
.s3-wave { position: relative; }
|
||
.s3-wave-v { position: absolute; z-index: 2; display: grid; border-radius: 20px; overflow: hidden; pointer-events: none; }
|
||
.s3-wave-v i { display: block; background: light-dark(#f5f5f5, var(--surface-2)); box-shadow: inset 0 0 0 .5px light-dark(#e5e5e5, var(--surface-3)); }
|
||
.s3-wave[data-wave='play'] .s3-wave-v i { animation: s3-wave .45s cubic-bezier(.4, 0, .2, 1) var(--t, 0s) forwards; }
|
||
@keyframes s3-wave { 40% { transform: scale(.8); } to { transform: scale(0); opacity: 0; } }
|
||
|
||
/* Hanzo's own picture on this page (kai, the stacked plates), kept: under "Paste and ship" in the black room */
|
||
.s3-kai { margin-top: 28px; max-width: 360px; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: #000; }
|
||
.s3-kai img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
|
||
@media (max-width: 899px) { .s3-kai { margin-top: 20px; max-width: none; aspect-ratio: 16 / 10; } }
|
||
|
||
/* ---------- dark mode (docs/DARK-MODE.md): the kit's .lx tokens are literal values, so this page gives them Hanzo's
|
||
dark tokens (light values unchanged); the black room keeps its own (.lx-dark) ---------- */
|
||
.lx.s3 { --ink: light-dark(#0a0a0a, var(--foreground)); --acc: light-dark(#0a0a0a, var(--foreground)); --acc-soft: light-dark(#f2f2f2, var(--surface-2)); --muted: light-dark(#525252, var(--text-secondary)); --soft: light-dark(#525252, var(--muted-foreground)); --faint: light-dark(#737373, var(--text-tertiary)); --silver: light-dark(#d4d4d4, var(--surface-3)); --card: light-dark(#f5f5f5, var(--surface-2)); --line: light-dark(rgba(0, 0, 0, .1), var(--border)); --bg: light-dark(#fff, var(--background)); }
|
||
.s3 .lx-ghost { border-color: light-dark(rgba(0, 0, 0, .14), var(--border-control)); }
|
||
.s3 .lx-dark .lx-ghost { border-color: rgba(255, 255, 255, .22); }
|
||
.s3 .lx-dark .lx-cta { background: light-dark(#fafafa, var(--primary)); }
|
||
@media (hover: hover) { .s3 .lx-dark .lx-cta:hover { background: light-dark(#fff, var(--primary)); } }
|
||
/* shared fills whose dark half reads var(--muted): under the kit's .lx root that name is a text grey, so name the fill */
|
||
.s3 .lx-close-art { background: light-dark(#f5f5f5, var(--surface-2)); }
|