mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:21:13 +00:00
- /design, /desktop, /download, /api: the shared app-page stylesheet paints the page white with no dark rules; each page now maps it to Hanzo's dark tokens (--bg, --ink, --soft, --faint, --line), as /bot and /chrome already do. - /api, /sms-opt-in, /buying-specialist: white diagram cards, chips, phone screen and composer now sit on --x-raised / --card / --muted with --border edges. - /dns, /risk, /registry: captions on ink fills (light in dark) use --primary-foreground. - /kai: the light model card uses --muted in dark. - /enso: the particle ring was drawn on a canvas in a fixed #0a0a0a, invisible in dark. It now reads --eo-ink, which only dark sets (var(--foreground)); light still draws #0a0a0a. Every CSS 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
481 lines
44 KiB
CSS
481 lines
44 KiB
CSS
/* Registry v2 (Cloud 3). Grey only (JAMES 7): ink, greys, silvers and white. Status never rides on colour: a checked
|
|
step carries ✓, a refusal carries !, a deleted tag or revoked person is struck through, an org is set in weight.
|
|
Hover lives in (hover: hover); press is .98 or 1px. */
|
|
|
|
/* the one solid ask: the header's button is left to the shared Ask (outlined only while "View Source" is on screen,
|
|
then it carries "View Source" solid for the rest of the page) */
|
|
|
|
/* hero: the push on the left, the words on the right */
|
|
.rg-hero { padding: clamp(24px, 3.2vw, 48px) 0 64px; }
|
|
/* the first screen holds the window and the words, centred, with the next section peeking under it */
|
|
.rg-hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 4.5vw, 80px); align-items: center; }
|
|
.rg-h1 { margin: 0; }
|
|
.rg-lede { margin-top: 24px; font-size: 16px; line-height: 1.6; max-width: 44ch; color: light-dark(#525252, var(--text-secondary)); }
|
|
.rg-cta { margin-top: 32px; }
|
|
|
|
/* the push: one window, the terminal dark on the left, the registry light on the right */
|
|
.rg-push { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); min-height: min(560px, calc(100svh - 64px - 140px)); border-radius: 24px; overflow: hidden; box-shadow: 0 0 0 1px light-dark(rgba(0, 0, 0, .1), var(--border)); }
|
|
.rg-push [data-step] { cursor: default; }
|
|
.rg .rg-pause { top: 6px; right: 8px; }
|
|
.rg-replay svg { transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
|
|
@media (hover: hover) { .rg-replay:hover svg { transform: rotate(-60deg); } }
|
|
.rg-term { position: relative; background: #0a0a0a; color: #e5e5e5; display: flex; flex-direction: column; }
|
|
.rg-term-bar { display: flex; align-items: center; gap: 7px; height: 56px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
|
|
.rg-term-bar i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid #404040; }
|
|
.rg-term-bar span { margin-left: 10px; font: 500 13px/1 var(--mono); color: #a3a3a3; }
|
|
.rg-term-body { padding: 22px 22px 80px; flex: 1; }
|
|
.rg-term-body p { position: relative; margin: 0 0 6px; padding: 5px 8px 5px 30px; border-radius: 8px; font: 400 14px/1.45 var(--mono); color: #d4d4d4; opacity: .3; transition: opacity .35s, background-color .25s, color .25s; }
|
|
.rg-term-body p.in { opacity: 1; }
|
|
.rg-term-body p.now { background: rgba(255, 255, 255, .07); color: #fff; }
|
|
/* the marks: ✓ checked, ! refused; the first line is the prompt */
|
|
.rg-term-body p::before { position: absolute; left: 8px; top: 5px; width: 16px; text-align: center; font-weight: 600; }
|
|
.rg-term-body p.ok::before { content: '✓'; color: #f5f5f5; }
|
|
.rg-term-body p.warn::before { content: '!'; color: #0a0a0a; background: #f5f5f5; border-radius: 50%; width: 16px; height: 16px; line-height: 16px; font-size: 12px; top: 7.5px; }
|
|
.rg-term-body p.warn { font-weight: 600; }
|
|
.rg-term-body p.rg-caret { margin-top: 14px; padding-left: 8px; color: #d4d4d4; opacity: 0; }
|
|
.rg-term-body p.rg-caret.in { opacity: 1; }
|
|
/* at rest the prompt waits for the next command: the caret blinks (the window's one idle mover) */
|
|
.rg-caret i { display: inline-block; width: 8px; height: 16px; vertical-align: -3px; background: light-dark(#d4d4d4, var(--surface-3)); animation: rg-blink 1.1s steps(2, jump-none) infinite; }
|
|
@keyframes rg-blink { 50% { opacity: 0; } }
|
|
.rg-layers { margin-top: 18px; display: grid; gap: 10px; padding: 8px 8px 8px 30px; border-radius: 8px; transition: background-color .25s; }
|
|
.rg-layers.now { background: rgba(255, 255, 255, .07); }
|
|
.rg-layer { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: center; font: 400 13px/1 var(--mono); color: #a3a3a3; }
|
|
.rg-layer i { display: block; height: 6px; border-radius: 6px; background: #262626; overflow: hidden; }
|
|
.rg-layer b { display: block; height: 100%; background: #f5f5f5; transform: scaleX(0); transform-origin: 0 50%; transition-property: transform; transition-timing-function: cubic-bezier(.4, 0, .2, 1); }
|
|
.rg-push[data-t='4'] .rg-layer b, .rg-push[data-t='5'] .rg-layer b, .rg-push[data-t='6'] .rg-layer b { transform: scaleX(1); }
|
|
.rg-iamchip { position: absolute; right: 18px; bottom: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
|
|
.rg-iam-k { padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); font: 500 13px/1 var(--mono); color: #d4d4d4; }
|
|
.rg-token { padding: 6px 11px; border-radius: 999px; background: #f5f5f5; color: #0a0a0a; font: 600 13px/1 var(--mono); opacity: 0; transform: translate(0, 0) scale(.8); transition: opacity .3s, transform 1s cubic-bezier(.16, 1, .3, 1); }
|
|
.rg-push[data-t='2'] .rg-token { opacity: 1; transform: translate(0, 0) scale(1); }
|
|
.rg-push[data-t='3'] .rg-token { opacity: 0; transform: translate(150px, -12px) scale(.9); }
|
|
.rg-repo { background: light-dark(#fff, var(--surface-1)); display: flex; flex-direction: column; }
|
|
.rg-repo-bar { display: flex; align-items: center; height: 56px; padding: 0 64px 0 24px; border-bottom: 1px solid var(--line); background: light-dark(#fafafa, var(--surface-card-quiet)); font: 500 14px/1 var(--sans); color: var(--ink); white-space: nowrap; }
|
|
.rg-repo-in { flex: 1; padding: 22px 24px 24px; display: flex; flex-direction: column; }
|
|
.rg-repo-k { margin: 0; font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
|
|
.rg-repo-n { margin: 10px 0 22px; font: 400 26px/1.1 var(--sans); letter-spacing: -.03em; color: var(--muted); }
|
|
.rg-repo-n b { color: var(--ink); font-weight: 700; }
|
|
.rg-repo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
|
|
.rg-mini { position: relative; flex: 1; min-height: 120px; display: grid; place-items: center; }
|
|
.rg-mini i { position: absolute; left: 50%; top: 50%; width: 92px; aspect-ratio: 1; margin: -46px 0 0 -46px; border-radius: 10px; background: light-dark(#0a0a0a, var(--surface-3)); opacity: 0; transform: rotateX(58deg) rotateZ(-45deg) translateZ(calc(var(--z) * 10px + 50px)); transition: opacity .3s, transform .6s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--z) * 180ms); }
|
|
.rg-mini i:nth-child(2) { background: light-dark(#262626, var(--border-control)); }
|
|
.rg-mini i:nth-child(3) { background: light-dark(#404040, var(--muted-foreground)); }
|
|
.rg-mini i:nth-child(4) { background: light-dark(#525252, var(--muted-foreground)); }
|
|
.rg-mini i.top { background: light-dark(#f5f5f5, var(--surface-2)); box-shadow: inset 0 0 0 1.5px light-dark(#0a0a0a, var(--foreground)); transition-delay: 0s; }
|
|
.rg-mini.up i:not(.top), .rg-mini.done i.top { opacity: 1; transform: rotateX(58deg) rotateZ(-45deg) translateZ(calc(var(--z) * 10px)); }
|
|
.rg-repo li { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; border-radius: 12px; background: var(--card); font: 500 14px/1 var(--mono); color: var(--ink); opacity: .3; transform: translateY(8px); transition: opacity .4s, transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .3s; }
|
|
.rg-repo li.in { opacity: 1; transform: none; }
|
|
.rg-repo li span { font-family: var(--sans); font-weight: 400; color: var(--muted); }
|
|
.rg-repo li.new.in { background: light-dark(#fff, var(--surface-1)); box-shadow: inset 0 0 0 1.5px var(--ink); }
|
|
/* the signature hangs off its image */
|
|
.rg-repo li.sig { margin-left: 22px; }
|
|
.rg-repo li.sig.in span { color: var(--ink); font-weight: 600; }
|
|
.rg-repo li.now { box-shadow: inset 0 0 0 1.5px var(--ink); }
|
|
.rg-org { margin: 0; padding-top: 18px; font-size: 14px; color: var(--muted); }
|
|
|
|
/* the chapters' object: the image as one big stack of inked layers on the page's white (no window chrome); each
|
|
chapter's change is labelled on the object, and one short caption sits under it */
|
|
.rg-rv { display: grid; gap: 4px; }
|
|
.rg-iso { position: relative; height: min(460px, calc(100svh - 64px - 220px)); min-height: 360px; display: grid; place-items: center; }
|
|
.rg-iso-s { position: relative; width: clamp(240px, 23vw, 330px); aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-45deg); animation: rg-bob 6s cubic-bezier(.4, 0, .2, 1) infinite alternate; }
|
|
@keyframes rg-bob { from { translate: 0 -6px; } to { translate: 0 6px; } }
|
|
.rg-pl { --gap: 26px; position: absolute; inset: 0; border-radius: 22px; background: light-dark(#0a0a0a, var(--surface-3)); transform: translateZ(calc(var(--z) * var(--gap))); transition: transform .6s cubic-bezier(.16, 1, .3, 1), opacity .4s, background-color .4s, box-shadow .4s; }
|
|
.rg-pl:nth-child(2) { background: light-dark(#262626, var(--border-control)); }
|
|
.rg-pl:nth-child(3) { background: light-dark(#404040, var(--muted-foreground)); }
|
|
.rg-pl:nth-child(4) { background: light-dark(#525252, var(--muted-foreground)); }
|
|
.rg-pl-top { background: light-dark(#f5f5f5, var(--surface-2)); box-shadow: inset 0 0 0 1.5px light-dark(#0a0a0a, var(--foreground)); }
|
|
.rg-pl-sig, .rg-pl-att { inset: 62% 22% -6% 22%; background: light-dark(#fafafa, var(--surface-card-quiet)); box-shadow: inset 0 0 0 1.5px light-dark(#0a0a0a, var(--foreground)); opacity: 0; border-radius: 12px; }
|
|
.rg-pl-tok { inset: 36%; border-radius: 999px; background: light-dark(#0a0a0a, var(--surface-3)); box-shadow: 0 0 0 6px light-dark(#fafafa, var(--surface-card-quiet)); }
|
|
.rg-iso-n { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; font: 500 14px/1 var(--mono); color: light-dark(#737373, var(--muted-foreground)); }
|
|
.rg-iso-n b { color: light-dark(#0a0a0a, var(--foreground)); font-weight: 700; padding: 3px 6px; border-radius: 6px; transition: background-color .3s, color .3s; }
|
|
/* intro: the token hovers high over the stack */
|
|
.rg-rv[data-step='intro'] .rg-pl-tok { transform: translateZ(230px); }
|
|
/* 01: the token comes down and seats on the stack; the layers spread as the push goes through */
|
|
.rg-rv[data-step='0'] .rg-pl { --gap: 36px; }
|
|
.rg-rv[data-step='0'] .rg-pl-tok { transform: translateZ(186px) scale(.9); }
|
|
.rg-rv:not([data-step='intro']):not([data-step='0']) .rg-pl-tok { opacity: 0; transform: translateZ(80px) scale(.6); }
|
|
/* 02: the org claims the image: the top plate turns ink */
|
|
.rg-rv[data-step='1'] .rg-pl-top { background: light-dark(#0a0a0a, var(--surface-3)); box-shadow: inset 0 0 0 1.5px light-dark(#fafafa, var(--surface-card-quiet)); }
|
|
.rg-rv[data-step='1'] .rg-iso-n b { background: light-dark(#0a0a0a, var(--primary)); color: light-dark(#fff, var(--primary-foreground)); }
|
|
/* 03: the signature and the attestation dock beside the image */
|
|
.rg-rv[data-step='2'] .rg-pl-sig { opacity: 1; transform: translate(0, 46%) translateZ(110px); }
|
|
.rg-rv[data-step='2'] .rg-pl-att { opacity: 1; transform: translate(0, 46%) translateZ(60px); transition-delay: .12s; }
|
|
/* 04: /v2/: the stack squares up, every client reads the same layers */
|
|
.rg-rv[data-step='3'] .rg-pl { --gap: 16px; }
|
|
/* 05: a tag comes off: one layer slides out */
|
|
.rg-rv[data-step='4'] .rg-pl:nth-child(3) { transform: translate(-60%, 0) translateZ(52px); opacity: 0; transition-delay: .3s; }
|
|
/* 06: one directory of people: the stack folds flat under one account */
|
|
.rg-rv[data-step='5'] .rg-pl { --gap: 9px; }
|
|
|
|
/* the labels on the object (screen space, so they read straight) */
|
|
.rg-t { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; background: light-dark(#fff, var(--surface-1)); box-shadow: inset 0 0 0 1px light-dark(rgba(0, 0, 0, .14), var(--border-control)); font: 500 14px/1 var(--mono); color: light-dark(#0a0a0a, var(--foreground)); white-space: nowrap; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .55s cubic-bezier(.16, 1, .3, 1); }
|
|
.rg-t[data-on] { opacity: 1; transform: none; transition-delay: .25s; }
|
|
.rg-t-tok { top: 4%; left: 58%; flex-direction: column; align-items: stretch; border-radius: 16px; padding: 12px 14px; }
|
|
.rg-t-tok b { font-weight: 600; text-decoration: line-through 2px; text-decoration-color: transparent; transition: color .4s, text-decoration-color .4s; }
|
|
.rg-ttl-bar { display: block; width: 160px; height: 6px; border-radius: 6px; background: light-dark(#e5e5e5, var(--surface-3)); overflow: hidden; }
|
|
.rg-ttl-bar i { display: block; height: 100%; border-radius: 6px; background: light-dark(#0a0a0a, var(--muted-foreground)); transform-origin: 0 50%; transition: transform .4s; }
|
|
.rg-rv[data-step='intro'] .rg-ttl-bar i { transform: scaleX(0); transition: transform 5s linear .5s; }
|
|
.rg-rv[data-step='intro'] .rg-t-tok b { color: light-dark(#737373, var(--muted-foreground)); text-decoration-color: currentColor; transition-delay: 5.5s; }
|
|
.rg-t-pw { top: 30%; left: 2%; color: light-dark(#737373, var(--muted-foreground)); text-decoration: line-through 2px; }
|
|
/* the password is struck, then falls away */
|
|
.rg-t-pw[data-on] { animation: rg-fall 1.4s cubic-bezier(.4, 0, .2, 1) 1.2s forwards; }
|
|
@keyframes rg-fall { to { opacity: 0; transform: translateY(70px); } }
|
|
.rg-t-seat { top: 10%; left: 60%; }
|
|
.rg-t-org { top: 18%; left: 64%; font-size: 16px; }
|
|
.rg-t-org b { font-weight: 700; }
|
|
.rg-t-sig { top: 66%; left: 70%; }
|
|
.rg-t-att { top: 76%; left: 70%; }
|
|
.rg-t-del { top: 46%; left: 2%; color: light-dark(#737373, var(--muted-foreground)); text-decoration: line-through 2px; }
|
|
.rg-t-del[data-on] { animation: rg-slide 1.2s cubic-bezier(.4, 0, .2, 1) 1s forwards; }
|
|
@keyframes rg-slide { to { opacity: 0; transform: translateX(-40px); } }
|
|
.rg-ppl { position: absolute; top: 6%; left: 50%; display: flex; translate: -50% 0; }
|
|
.rg-ppl i { display: grid; place-items: center; width: 44px; height: 44px; margin-left: 10px; border-radius: 50%; background: light-dark(#0a0a0a, var(--primary)); color: light-dark(#fff, var(--primary-foreground)); box-shadow: 0 0 0 3px light-dark(#fff, var(--surface-1)); font: 500 15px/1 var(--mono); font-style: normal; text-transform: uppercase; opacity: 0; transform: translateY(-10px); transition: opacity .35s, transform .5s cubic-bezier(.16, 1, .3, 1), margin .6s cubic-bezier(.4, 0, .2, 1); }
|
|
.rg-ppl i.off { background: light-dark(#fff, var(--surface-1)); color: light-dark(#737373, var(--muted-foreground)); box-shadow: inset 0 0 0 1.5px light-dark(#a3a3a3, var(--text-tertiary)), 0 0 0 3px light-dark(#fff, var(--surface-1)); text-decoration: line-through 2px; }
|
|
.rg-ppl[data-on] i { opacity: 1; transform: none; margin-left: -6px; transition-delay: calc(.2s + var(--i) * 80ms), calc(.2s + var(--i) * 80ms), .9s; }
|
|
|
|
/* the caption under the object */
|
|
.rg-rv-panes { display: grid; min-height: 88px; align-items: start; justify-items: center; text-align: center; }
|
|
.rg-rv-pane { grid-area: 1 / 1; margin: 0; font: 500 14px/1.4 var(--mono); color: light-dark(#525252, var(--text-secondary)); opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .55s cubic-bezier(.16, 1, .3, 1); }
|
|
.rg-rv-pane[data-on] { opacity: 1; transform: none; transition-delay: .15s; }
|
|
.rg-v2 { display: grid; justify-items: center; gap: 8px; }
|
|
.rg-v2 .lx-num { font-size: 64px; line-height: 1; color: light-dark(#0a0a0a, var(--foreground)); }
|
|
.rg-clients { font: 500 14px/1 var(--mono); color: light-dark(#525252, var(--text-secondary)); }
|
|
.rg-store { display: grid; justify-items: center; gap: 10px; width: min(320px, 100%); }
|
|
.rg-store i { display: block; width: 100%; height: 10px; border-radius: 10px; background: light-dark(#0a0a0a, var(--muted-foreground)); transform-origin: 0 50%; transform: scaleX(1); transition: transform .9s .7s cubic-bezier(.16, 1, .3, 1); }
|
|
.rg-rv[data-step='4'] .rg-store i { transform: scaleX(.66); }
|
|
|
|
/* the dark room */
|
|
.rg-del { padding: clamp(72px, 8vw, 112px) 0 clamp(56px, 6vw, 88px); }
|
|
.rg-del-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px clamp(32px, 5vw, 80px); align-items: center; }
|
|
.rg-del-l .lx-headline { max-width: 12ch; font-size: 32px; line-height: 1.12; text-decoration: line-through 3px; text-decoration-color: transparent; transition: text-decoration-color .4s, color .4s; }
|
|
.rg-del-grid.on .rg-del-h { text-decoration-color: currentColor; color: #a3a3a3; }
|
|
.rg-del-l .rg-swap-b { margin-top: 24px; }
|
|
.rg-del-l .lx-lede { margin-top: 24px; color: #a3a3a3; }
|
|
/* every control in the room answers (fill, underline, press) */
|
|
.rg-del .lx-ghost, .rg-del .lx-text { transition: background-color .15s, color .15s, text-decoration-thickness .15s, transform 90ms; }
|
|
.rg-del .lx-ghost:active, .rg-del .lx-text:active { transform: scale(.97); }
|
|
@media (hover: hover) {
|
|
.rg-del .lx-ghost:hover { background: #fafafa; color: #0a0a0a; }
|
|
.rg-del .lx-text:hover { text-decoration: underline 2px; text-underline-offset: 5px; }
|
|
}
|
|
.rg-del-acts { display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; margin-top: 36px; }
|
|
.rg-code pre { font-size: 16px; }
|
|
/* the room's terminal waits at a prompt too (drawn, so the copied text stays exactly the displayed command) */
|
|
.rg-code pre::after { content: ''; display: inline-block; width: 9px; height: 18px; margin-left: 6px; vertical-align: -3px; background: #d4d4d4; animation: rg-blink 1.1s steps(2, jump-none) infinite; }
|
|
.rg-swap { grid-column: 1 / -1; margin-top: 8px; }
|
|
.rg-swap-b { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: none; color: #f5f5f5; font: 500 16px/1.2 var(--sans); text-align: left; cursor: pointer; touch-action: manipulation; transition: border-color .25s, background-color .25s, transform .12s var(--lx-ease); }
|
|
.rg-swap-b:active { transform: scale(.98); }
|
|
@media (hover: hover) { .rg-swap-b:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .05); } .rg-swap-b:hover .rg-swap-sw i { transform: translateX(4px); } .rg-del-grid.on .rg-swap-b:hover .rg-swap-sw i { transform: translateX(14px); } }
|
|
.rg-swap-sw { position: relative; flex: none; width: 48px; height: 30px; border-radius: 999px; background: #262626; transition: background-color .3s; }
|
|
.rg-swap-sw i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #f5f5f5; transition: transform .3s cubic-bezier(.16, 1, .3, 1), background-color .3s; }
|
|
.rg-del-grid.on .rg-swap-sw { background: #f5f5f5; }
|
|
.rg-del-grid.on .rg-swap-sw i { transform: translateX(18px); background: #0a0a0a; }
|
|
/* the rows: a ledger, read left to right, not three boxes */
|
|
.rg-swap-t { margin: 28px 0 0; display: grid; border-top: 1px solid rgba(255, 255, 255, .12); }
|
|
.rg-swap-r { display: grid; grid-template-columns: minmax(160px, 3fr) 9fr; align-items: baseline; gap: 24px; padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
|
|
.rg-swap-r dt { font: 500 13px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #a3a3a3; }
|
|
.rg-swap-r dd { grid-area: 1 / 2; margin: 0; font-size: clamp(21px, 2vw, 30px); line-height: 1.25; letter-spacing: -.02em; }
|
|
.rg-swap-r .was { color: #a3a3a3; text-decoration: line-through 2px; text-decoration-color: transparent; transition: text-decoration-color .3s, opacity .3s; }
|
|
.rg-swap-r .now { color: #f5f5f5; clip-path: inset(0 100% 0 0); transition: clip-path .7s cubic-bezier(.76, 0, .24, 1); }
|
|
.rg-swap.on .was { text-decoration-color: #f5f5f5; opacity: 0; transition-delay: 0s, .35s; }
|
|
.rg-swap.on .now { clip-path: inset(0 0 0 0); }
|
|
.rg-swap.on .rg-swap-r:nth-child(2) .now { transition-delay: .08s; }
|
|
.rg-swap.on .rg-swap-r:nth-child(3) .now { transition-delay: .16s; }
|
|
|
|
/* console + paste: Hanzo's words are in the server HTML, so the shared fade-up never hides them */
|
|
/* the registry console: the org's repositories, each an image that opens into its layers and tags */
|
|
.rg-con { padding: clamp(72px, 8vw, 120px) 0 clamp(40px, 4vw, 64px); }
|
|
.rg-con-in { max-width: 1040px; }
|
|
.rg-rc { border-radius: 24px; background: light-dark(#fff, var(--surface-1)); box-shadow: 0 0 0 1px light-dark(rgba(0, 0, 0, .1), var(--border)); overflow: hidden; }
|
|
.rg-rc-bar { display: flex; align-items: center; gap: 7px; height: 52px; padding: 0 18px; border-bottom: 1px solid light-dark(rgba(0, 0, 0, .08), var(--border)); background: light-dark(#fafafa, var(--surface-card-quiet)); }
|
|
.rg-rc-bar i { width: 11px; height: 11px; border-radius: 50%; background: light-dark(#e5e5e5, var(--surface-3)); }
|
|
.rg .rg-rc-title { margin-left: 10px; display: inline-flex; align-items: center; min-height: 44px; font: 500 14px/1 var(--sans); color: light-dark(#525252, var(--text-secondary)); text-decoration: none; }
|
|
.rg-rc-body { display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr); min-height: 360px; }
|
|
.rg-rc-side { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; border-right: 1px solid light-dark(rgba(0, 0, 0, .08), var(--border)); }
|
|
.rg-rc-ico { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: light-dark(#737373, var(--muted-foreground)); transition: background-color .15s, color .15s, transform 90ms; }
|
|
.rg-rc-ico.on { background: light-dark(#f2f2f2, var(--surface-2)); color: light-dark(#0a0a0a, var(--foreground)); }
|
|
.rg-rc-ico:active { transform: scale(.97); }
|
|
.rg-rc-tip { position: absolute; left: 52px; top: 50%; z-index: 60; padding: 7px 10px; border-radius: 8px; background: light-dark(#0a0a0a, var(--primary)); color: light-dark(#fafafa, var(--primary-foreground)); font: 500 13px/1 var(--sans); white-space: nowrap; opacity: 0; translate: -4px -50%; pointer-events: none; transition: opacity .15s, translate .15s; }
|
|
.rg-rc-ico:focus-visible .rg-rc-tip { opacity: 1; translate: 0 -50%; }
|
|
.rg-rc-list { list-style: none; margin: 0; padding: 14px; display: grid; align-content: start; gap: 6px; border-right: 1px solid light-dark(rgba(0, 0, 0, .08), var(--border)); }
|
|
.rg-rc-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 12px; font: 500 15px/1 var(--mono); color: light-dark(#0a0a0a, var(--foreground)); cursor: pointer; transition: background-color .2s, box-shadow .2s, transform 90ms; }
|
|
.rg-rc-list li em { font-style: normal; color: light-dark(#737373, var(--muted-foreground)); }
|
|
.rg-rc-list li[aria-selected='true'] { background: light-dark(#f5f5f5, var(--surface-2)); box-shadow: inset 0 0 0 1.5px light-dark(#0a0a0a, var(--foreground)); }
|
|
.rg-rc-list li:active { transform: scale(.98); }
|
|
.rg-rc-st { display: inline-flex; align-items: center; gap: 6px; font: 400 14px/1 var(--sans); color: light-dark(#525252, var(--text-secondary)); }
|
|
.rg-rc-st::before { content: '✓'; font-weight: 600; color: light-dark(#0a0a0a, var(--foreground)); }
|
|
.rg-rc-st.b::before { content: none; }
|
|
.rg-rc-spin { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid light-dark(#d4d4d4, var(--border-control)); border-top-color: light-dark(#0a0a0a, var(--foreground)); animation: rg-spin .9s linear infinite; }
|
|
@keyframes rg-spin { to { transform: rotate(360deg); } }
|
|
/* the selected image: its layers stack up (a building image is still going up), then its tags */
|
|
.rg-rc-img { display: grid; align-content: center; justify-items: center; gap: 14px; padding: 20px; background: light-dark(#fafafa, var(--surface-card-quiet)); }
|
|
.rg-rc-stack { position: relative; width: 120px; aspect-ratio: 1; margin: 34px 0 30px; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-45deg); }
|
|
.rg-rc-stack i { position: absolute; inset: 0; border-radius: 12px; background: light-dark(#0a0a0a, var(--surface-3)); transform: translateZ(calc(var(--z) * 12px)); animation: rg-drop .6s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--z) * 90ms); }
|
|
.rg-rc-stack i:nth-child(2) { background: light-dark(#262626, var(--border-control)); }
|
|
.rg-rc-stack i:nth-child(3) { background: light-dark(#404040, var(--muted-foreground)); }
|
|
.rg-rc-stack i:nth-child(4) { background: light-dark(#525252, var(--muted-foreground)); }
|
|
.rg-rc-stack i.top { background: light-dark(#f5f5f5, var(--surface-2)); box-shadow: inset 0 0 0 1.5px light-dark(#0a0a0a, var(--foreground)); }
|
|
@keyframes rg-drop { from { opacity: 0; transform: translateZ(calc(var(--z) * 12px + 60px)); } }
|
|
.rg-rc-img.busy .rg-rc-stack i.top { animation: rg-wait 1.2s cubic-bezier(.4, 0, .2, 1) infinite alternate; }
|
|
@keyframes rg-wait { from { opacity: .25; transform: translateZ(84px); } to { opacity: 1; transform: translateZ(48px); } }
|
|
.rg-rc-path { margin: 0; font: 500 14px/1 var(--mono); color: light-dark(#737373, var(--muted-foreground)); }
|
|
.rg-rc-path b { color: light-dark(#0a0a0a, var(--foreground)); }
|
|
.rg-rc-tags { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; width: min(280px, 100%); }
|
|
.rg-rc-tags li { display: flex; justify-content: space-between; padding: 11px 12px; border-radius: 10px; background: light-dark(#fff, var(--surface-1)); box-shadow: inset 0 0 0 1px light-dark(rgba(0, 0, 0, .1), var(--border)); font: 500 14px/1 var(--mono); color: light-dark(#0a0a0a, var(--foreground)); transition: opacity .3s; }
|
|
.rg-rc-tags li span { font-family: var(--sans); font-weight: 400; color: light-dark(#525252, var(--text-secondary)); }
|
|
.rg-rc-tags li.sig { margin-left: 16px; }
|
|
.rg-rc-img.busy .rg-rc-tags li { opacity: .35; }
|
|
.rg-rc-cap { margin: 0; padding: 14px 18px; border-top: 1px solid light-dark(rgba(0, 0, 0, .08), var(--border)); font-size: 14px; color: light-dark(#525252, var(--text-secondary)); }
|
|
.rg-rc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px 8px 18px; border-top: 1px solid light-dark(rgba(0, 0, 0, .08), var(--border)); font: 500 14px/1 var(--mono); color: light-dark(#737373, var(--muted-foreground)); }
|
|
.rg-rc-foot b { color: light-dark(#0a0a0a, var(--foreground)); font-weight: 500; }
|
|
.rg-rc-open { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px light-dark(rgba(0, 0, 0, .14), var(--border-control)); font: 500 14px/1 var(--sans); color: light-dark(#0a0a0a, var(--foreground)); text-decoration: none; transition: background-color .15s, box-shadow .15s, transform 90ms; }
|
|
.rg-rc-open:active { transform: scale(.97); }
|
|
.rg-note { margin: 16px 0 0; font-size: 14px; color: light-dark(#525252, var(--text-secondary)); }
|
|
@media (hover: hover) {
|
|
.rg-rc-ico:hover { background: light-dark(#f2f2f2, var(--surface-2)); color: light-dark(#0a0a0a, var(--foreground)); }
|
|
.rg-rc-ico:hover .rg-rc-tip { opacity: 1; translate: 0 -50%; }
|
|
.rg-rc-list li:hover { background: light-dark(#f5f5f5, var(--surface-2)); }
|
|
.rg-rc-open:hover { background: light-dark(#0a0a0a, var(--primary)); color: light-dark(#fafafa, var(--primary-foreground)); box-shadow: none; }
|
|
.rg .rg-rc-title:hover { color: light-dark(#0a0a0a, var(--foreground)); text-decoration: underline 1px; text-underline-offset: 3px; }
|
|
}
|
|
|
|
/* related: each capability drawn as what it does to an image; hover plays it */
|
|
.rg-rel { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 6vw, 96px); }
|
|
.rg-rel-h { margin: 0 0 20px; font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: light-dark(#525252, var(--text-secondary)); }
|
|
.rg-rel-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 5fr 4fr 4fr; gap: 12px; }
|
|
.rg-rel-card { position: relative; display: grid; grid-template-rows: 1fr auto auto; height: 100%; min-height: 300px; padding: 0 24px 22px; border-radius: 24px; background: light-dark(#f5f5f5, var(--surface-2)); color: light-dark(#0a0a0a, var(--foreground)); text-decoration: none; overflow: hidden; transition: background-color .2s, transform 90ms; }
|
|
.rg-rel-card:active { transform: scale(.97); }
|
|
.rg-rel-card > svg { position: absolute; right: 22px; bottom: 24px; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
|
|
.rg-rel-t { font: 497 26px/1.1 var(--sans); letter-spacing: -.02em; }
|
|
.rg-rel-d { margin-top: 6px; padding-right: 32px; font-size: 15px; color: light-dark(#525252, var(--text-secondary)); }
|
|
.rg-ra { position: relative; display: flex; align-items: center; justify-content: center; gap: 28px; height: 190px; }
|
|
.rg-ra-s { position: relative; width: 70px; aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-45deg); }
|
|
.rg-ra-s i { --g: 9px; position: absolute; inset: 0; border-radius: 9px; background: light-dark(#0a0a0a, var(--muted-foreground)); transform: translateZ(calc(var(--z) * var(--g))); transition: transform .5s cubic-bezier(.16, 1, .3, 1), background-color .3s; transition-delay: calc(var(--z) * 40ms); }
|
|
.rg-ra-s i:nth-child(2) { background: #262626; }
|
|
.rg-ra-s i:nth-child(3) { background: light-dark(#404040, var(--muted-foreground)); }
|
|
.rg-ra-s i:nth-child(4) { background: light-dark(#f5f5f5, var(--surface-2)); box-shadow: inset 0 0 0 1.5px light-dark(#0a0a0a, var(--foreground)); }
|
|
/* Projects: the image sits in its project's frame */
|
|
.rg-ra-projects::before { content: ''; position: absolute; inset: 34px 26%; border-radius: 18px; box-shadow: inset 0 0 0 1.5px light-dark(rgba(0, 0, 0, .2), var(--border-control)); transition: inset .5s cubic-bezier(.16, 1, .3, 1), box-shadow .3s; }
|
|
/* Environments: one image, three places */
|
|
.rg-ra-environments .rg-ra-s { width: 54px; }
|
|
.rg-ra-environments .rg-ra-s:nth-child(2) i:nth-child(4) { background: light-dark(#d4d4d4, var(--surface-3)); }
|
|
.rg-ra-environments .rg-ra-s:nth-child(3) i:nth-child(4) { background: light-dark(#0a0a0a, var(--muted-foreground)); box-shadow: inset 0 0 0 1.5px light-dark(#fafafa, var(--surface-card-quiet)); }
|
|
/* Builds: source lines on the left become layers on the right */
|
|
.rg-ra-src { display: grid; gap: 7px; width: 64px; }
|
|
.rg-ra-src i { display: block; height: 6px; border-radius: 6px; background: light-dark(#a3a3a3, var(--surface-3)); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
|
|
.rg-ra-src i:nth-child(2) { width: 70%; }
|
|
.rg-ra-src i:nth-child(3) { width: 86%; }
|
|
@media (hover: hover) {
|
|
.rg-rel-card:hover { background: light-dark(#ededed, var(--surface-3)); }
|
|
.rg-rel-card:hover > svg { transform: translateX(4px); }
|
|
.rg-rel-card:hover .rg-ra-s i { --g: 17px; }
|
|
.rg-rel-card:hover .rg-ra-projects::before { inset: 22px 20%; box-shadow: inset 0 0 0 1.5px light-dark(#0a0a0a, var(--foreground)); }
|
|
.rg-rel-card:hover .rg-ra-environments .rg-ra-s:nth-child(2) { translate: 0 -8px; }
|
|
.rg-rel-card:hover .rg-ra-src i { transform: scaleX(.3); }
|
|
}
|
|
.rg-rel-card:focus-visible .rg-ra-s i { --g: 17px; }
|
|
|
|
/* the close carries "Get started" and the agent prompt, so the page ends once */
|
|
.rg-start { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
|
|
.rg-start-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
|
|
.rg-start-h { margin: 0; font: 497 17px/1.3 var(--sans); color: light-dark(#0a0a0a, var(--foreground)); }
|
|
.rg-paste { margin-top: 16px; }
|
|
.rg .rg-paste .cf-paste-h { display: grid; gap: 4px; margin-bottom: 12px; }
|
|
.rg-close .lx-close-in { align-items: start; }
|
|
.rg .lx-close.rg-close { padding: clamp(56px, 6vw, 96px) 0 clamp(72px, 8vw, 120px); }
|
|
.rg .cf-paste { opacity: 1 !important; transform: none !important; }
|
|
|
|
.rg .x-copy-t, .rg .cf-code-k, .rg .cf-paste-k { font-size: 13px; }
|
|
.rg .lx-close .lx-text, .rg .lx-close-repo { transition: color .15s, transform 90ms; text-underline-offset: 4px; }
|
|
.rg .lx-close .lx-text:active, .rg .lx-close-repo:active { transform: scale(.97); }
|
|
@media (hover: hover) { .rg .lx-close .lx-text:hover, .rg .lx-close-repo:hover { color: light-dark(#0a0a0a, var(--foreground)); text-decoration: underline 2px; } }
|
|
|
|
@media (max-width: 900px) {
|
|
.rg-hero { padding: 24px 0 96px; }
|
|
.rg-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
|
|
.rg-hero-grid { min-height: 0; }
|
|
.rg-stage { order: 2; }
|
|
.rg-lede { margin-top: 16px; font-size: 16px; }
|
|
.rg-cta { margin-top: 22px; }
|
|
.rg-push { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 20px; }
|
|
/* phone: the registry is a strip over the terminal, so the image lands on screen while it is pushed */
|
|
.rg-repo-bar { height: 52px; }
|
|
.rg-repo-k, .rg-mini { display: none; }
|
|
.rg-repo li.sig { margin-left: 16px; }
|
|
.rg-term-bar { height: 44px; }
|
|
.rg-term-body p { margin-bottom: 2px; padding-top: 4px; padding-bottom: 4px; }
|
|
.rg-layers { margin-top: 8px; gap: 8px; }
|
|
.rg-repo-bar { padding-left: 16px; }
|
|
.rg-term-bar span, .rg-layer, .rg-iam-k, .rg-token, .rg-repo-k, .rg-swap-r dt, .rg .x-copy-t, .rg .cf-code-k { font-size: 14px; }
|
|
.rg-term-body { padding: 14px 10px 70px; }
|
|
.rg-term-body p { font-size: 14px; padding-left: 28px; }
|
|
.rg-push[data-t='2'] .rg-token { transform: none; }
|
|
.rg-push[data-t='3'] .rg-token { transform: translate(0, -24px) scale(.9); }
|
|
/* phone: the stack and its caption fit the pinned window (40svh) */
|
|
.rg-iso { height: 210px; min-height: 0; }
|
|
.rg-iso-s { width: 128px; }
|
|
.rg-pl { --gap: 13px; border-radius: 12px; }
|
|
.rg-rv[data-step='0'] .rg-pl { --gap: 18px; }
|
|
.rg-rv[data-step='3'] .rg-pl { --gap: 8px; }
|
|
.rg-rv[data-step='5'] .rg-pl { --gap: 5px; }
|
|
.rg-rv[data-step='intro'] .rg-pl-tok { transform: translateZ(110px); }
|
|
.rg-rv[data-step='0'] .rg-pl-tok { transform: translateZ(92px) scale(.9); }
|
|
.rg-rv[data-step='2'] .rg-pl-sig { transform: translate(0, 46%) translateZ(56px); }
|
|
.rg-rv[data-step='2'] .rg-pl-att { transform: translate(0, 46%) translateZ(30px); }
|
|
.rg-rv[data-step='4'] .rg-pl:nth-child(3) { transform: translate(-60%, 0) translateZ(26px); }
|
|
.rg-t { padding: 7px 10px; font-size: 13px; }
|
|
.rg-t-tok { top: 0; left: auto; right: 0; padding: 9px 10px; }
|
|
.rg-ttl-bar { width: 110px; }
|
|
.rg-t-seat { top: 0; left: auto; right: 0; }
|
|
.rg-t-org { top: 4%; left: auto; right: 0; font-size: 14px; }
|
|
.rg-t-sig, .rg-t-att { left: auto; right: 0; }
|
|
.rg-t-sig { top: 62%; }
|
|
.rg-t-att { top: 76%; }
|
|
.rg-t-pw, .rg-t-del { left: 0; }
|
|
.rg-ppl { top: 0; }
|
|
.rg-ppl i { width: 36px; height: 36px; font-size: 14px; }
|
|
.rg-rv-panes { min-height: 70px; }
|
|
.rg-v2 .lx-num { font-size: 44px; }
|
|
.rg-rel-h, .rg .cf-paste-k, .rg .lx-close-facts, .rg .lx-close-facts a { font-size: 14px; }
|
|
.rg-del-l .lx-headline { font-size: 26px; }
|
|
.rg-repo-in { padding: 14px 16px 16px; }
|
|
.rg-repo-n { margin: 8px 0 12px; font-size: 22px; }
|
|
.rg-repo li { padding: 11px 12px; }
|
|
.rg-repo li:nth-child(3), .rg-org { display: none; }
|
|
.rg-del { padding: 120px 0; }
|
|
.rg-del-grid { grid-template-columns: minmax(0, 1fr); }
|
|
.rg-rc-body { grid-template-columns: 52px minmax(0, 1fr); }
|
|
.rg-rc-list { border-right: 0; padding: 10px; }
|
|
.rg-rc-list li { padding: 0 10px; font-size: 14px; }
|
|
.rg-rc-img { grid-column: 1 / -1; border-top: 1px solid light-dark(rgba(0, 0, 0, .08), var(--border)); }
|
|
.rg-rc-stack { width: 90px; margin: 24px 0 22px; }
|
|
.rg-rel-grid { grid-template-columns: minmax(0, 1fr); }
|
|
.rg-rel-card { min-height: 0; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; padding: 14px 18px 14px 0; column-gap: 8px; }
|
|
.rg-ra { grid-row: 1 / span 2; height: 100px; gap: 8px; }
|
|
.rg-ra-s { width: 40px; }
|
|
.rg-ra-environments .rg-ra-s { width: 26px; }
|
|
.rg-ra-src { width: 30px; gap: 5px; }
|
|
.rg-ra-projects::before { inset: 14px 10%; }
|
|
.rg-rel-t { font-size: 21px; align-self: end; }
|
|
.rg-rel-d { align-self: start; padding-right: 28px; }
|
|
.rg-rel-card > svg { bottom: auto; top: 50%; translate: 0 -50%; right: 16px; }
|
|
.rg-swap-r { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px 0; }
|
|
.rg-swap-r dt { grid-area: 1 / 1; }
|
|
.rg-swap-r dd { grid-area: 2 / 1; font-size: 20px; }
|
|
.rg-swap-b { font-size: 15px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.rg-iso-s, .rg-caret i, .rg-code pre::after, .rg-rc-stack i, .rg-rc-img.busy .rg-rc-stack i.top, .rg-rc-spin { animation: none; }
|
|
.rg-mini i, .rg-ra-s i, .rg-ra-src i { transition: none; }
|
|
.rg-pl, .rg-del-l .lx-headline, .rg-t, .rg-ppl i { transition: none; }
|
|
.rg-swap-r .now, .rg-swap-r .was, .rg-swap-sw, .rg-swap-sw i, .rg-token, .rg-layer b { transition: none; }
|
|
.rg-ttl-bar i, .rg-t-tok b { transition: none !important; }
|
|
.rg-t-pw[data-on], .rg-t-del[data-on] { animation: none; }
|
|
}
|
|
|
|
/* ===== motion map: zoom into the system (signature) + five entrances ===== */
|
|
|
|
/* 1 tilt-3d-hover: the hero window arrives tipped back, levels, then leans toward a fine pointer */
|
|
.rg-tilt { perspective: 1600px; }
|
|
.rg-tilt > .rg-push { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
|
|
html.js .rg-tilt:not([data-in]) > .rg-push { transform: rotateX(24deg) rotateY(-18deg) scale(.92); }
|
|
|
|
/* the signature: the whole system, then one part of it filling the screen */
|
|
.rg-zm { position: relative; height: 240svh; }
|
|
.rg-zm-stick { position: sticky; top: 64px; height: calc(100svh - 64px); overflow: hidden; }
|
|
.rg-zm-in { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 20px 0 24px; }
|
|
.rg-zm-head { display: grid; gap: 10px; max-width: 520px; }
|
|
.rg-zm-h { margin: 0; font: 497 32px/1.12 var(--sans); letter-spacing: -.02em; color: light-dark(#0a0a0a, var(--foreground)); }
|
|
.rg-zm-l { margin: 0; font-size: 16px; line-height: 1.55; color: light-dark(#525252, var(--text-secondary)); }
|
|
.rg-zm-stage { position: relative; min-height: 0; }
|
|
.rg-zm-map { position: absolute; inset: 0; transform-origin: 50% 50%; }
|
|
.rg-zm-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
|
|
.rg-zm-wires line { stroke: light-dark(#a3a3a3, var(--text-tertiary)); stroke-width: 1; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; animation: rg-flow 1.6s linear infinite; }
|
|
@keyframes rg-flow { to { stroke-dashoffset: -18; } }
|
|
.rg-zm-node { position: absolute; translate: -50% -50%; display: grid; gap: 5px; max-width: 220px; padding: 11px 15px; border-radius: 16px; background: light-dark(#fff, var(--surface-1)); box-shadow: inset 0 0 0 1px light-dark(rgba(0, 0, 0, .14), var(--border-control)); text-align: center; }
|
|
.rg-zm-node b { font: 497 16px/1.2 var(--sans); color: light-dark(#0a0a0a, var(--foreground)); }
|
|
.rg-zm-node em { font: 500 13px/1.2 var(--mono); font-style: normal; color: light-dark(#525252, var(--text-secondary)); }
|
|
.rg-zm-stack { position: absolute; inset: 0; display: grid; place-items: center; transform-origin: 50% 50%; }
|
|
.rg-zm-stack .rg-rv { width: 100%; }
|
|
.rg-zm .rg-iso { height: min(400px, calc(100svh - 64px - 300px)); min-height: 230px; }
|
|
.rg-zm .rg-rv-panes { min-height: 0; }
|
|
.rg-zm .rg-rv-panes:has(.rg-v2[data-on]) { min-height: 80px; }
|
|
/* before the zoom lands, the stack is one node of the map: its labels and caption wait */
|
|
.rg-zm:not(.open) .rg-t, .rg-zm:not(.open) .rg-ppl, .rg-zm:not(.open) .rg-rv-panes { opacity: 0 !important; transition: opacity .2s; }
|
|
.rg-zm-facts { display: grid; justify-items: center; gap: 12px; }
|
|
.rg-zm-tabs { display: flex; gap: 6px; max-width: 100%; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px; }
|
|
.rg-zm-tabs button { flex: none; scroll-snap-align: center; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 999px; background: light-dark(#f5f5f5, var(--surface-2)); color: light-dark(#0a0a0a, var(--foreground)); cursor: pointer; transition: background-color .2s, color .2s, transform 90ms; }
|
|
.rg-zm-tabs button:active { transform: scale(.97); }
|
|
.rg-zm-tabs button h3 { margin: 0; font: 497 15px/1 var(--sans); }
|
|
.rg-zm-n { font: 500 13px/1 var(--mono); color: light-dark(#737373, var(--muted-foreground)); transition: color .2s; }
|
|
.rg-zm-tabs button[aria-selected='true'] { background: light-dark(#0a0a0a, var(--primary)); color: light-dark(#fafafa, var(--primary-foreground)); }
|
|
.rg-zm-tabs button[aria-selected='true'] .rg-zm-n { color: light-dark(#a3a3a3, var(--text-tertiary)); }
|
|
@media (hover: hover) { .rg-zm-tabs button:not([aria-selected='true']):hover { background: light-dark(#e5e5e5, var(--surface-3)); } }
|
|
.rg-zm-p { margin: 0; max-width: 68ch; min-height: 3.2em; text-align: center; font-size: 15px; line-height: 1.6; color: light-dark(#525252, var(--text-secondary)); text-wrap: pretty; }
|
|
/* JS off: the zoom's end state, legible */
|
|
html:not(.js) .rg-zm { height: auto; }
|
|
html:not(.js) .rg-zm-stick { position: static; height: auto; }
|
|
html:not(.js) .rg-zm-map { display: none; }
|
|
html:not(.js) .rg-zm-stack { position: static; transform: none !important; }
|
|
html:not(.js) .rg-zm-facts { opacity: 1 !important; transform: none !important; }
|
|
html:not(.js) .rg-zm-p[hidden] { display: block; }
|
|
|
|
/* 2 pendulum: the system swings in from its top edge and settles */
|
|
.rg-zm-in { transform-origin: 50% 0; }
|
|
html.js .rg-zm-in:not([data-in]) { opacity: 0; transform: rotate(-12deg); }
|
|
.rg-zm-in[data-in] { animation: rg-pend 1.9s cubic-bezier(.4, 0, .2, 1) both; }
|
|
@keyframes rg-pend { 0% { opacity: 0; transform: rotate(-12deg); } 20% { opacity: 1; transform: rotate(8deg); } 40% { transform: rotate(-5deg); } 60% { transform: rotate(2.6deg); } 78% { transform: rotate(-1deg); } 100% { opacity: 1; transform: none; } }
|
|
|
|
/* 3 opposite-drift: the dark room's words and terminal drift in from opposite sides with the scroll */
|
|
.rg-drift { overflow-x: clip; }
|
|
.rg-drift .rg-del-l { translate: var(--dl, 0px) 0; }
|
|
.rg-drift .rg-code { translate: var(--dr, 0px) 0; }
|
|
|
|
/* 4 fold-out: the console unfolds down from a hinge along its top edge, like paper */
|
|
.rg-en-fold { transform-origin: 50% 0; transition: transform 1.1s cubic-bezier(.16, 1, .3, 1), opacity .5s; }
|
|
html.js .rg-en-fold:not([data-in]) { opacity: 0; transform: perspective(1400px) rotateX(-82deg); }
|
|
|
|
/* 5 invert-flash: the related cards arrive inverted, black for white, then flash back to normal */
|
|
html.js .rg-en-flash:not([data-in]) { opacity: 0; }
|
|
.rg-en-flash[data-in] { animation: rg-inv .9s cubic-bezier(0, 0, .2, 1) both; }
|
|
@keyframes rg-inv { 0% { opacity: 1; filter: invert(1); } 38% { filter: invert(1); } 46% { filter: invert(0); } 54% { filter: invert(1); } 100% { opacity: 1; filter: invert(0); } }
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.rg-zm-in[data-in], .rg-en-flash[data-in], .rg-zm-wires line { animation: none; }
|
|
.rg-tilt > .rg-push, .rg-en-fold { transition: none; }
|
|
.rg-zm { height: auto; }
|
|
.rg-zm-stick { position: static; height: auto; }
|
|
.rg-zm-map { display: none; }
|
|
.rg-zm-stack { position: static; transform: none !important; }
|
|
.rg-zm-facts { opacity: 1 !important; transform: none !important; }
|
|
.rg-zm-in { grid-template-rows: auto auto auto; }
|
|
.rg-drift .rg-del-l, .rg-drift .rg-code { translate: none !important; }
|
|
}
|
|
@media (max-width: 900px) {
|
|
.rg-zm { height: 220svh; }
|
|
.rg-zm-stick { top: 56px; height: calc(100svh - 56px); }
|
|
.rg-zm-in { padding: 14px 0 16px; }
|
|
.rg-zm-h { font-size: 26px; }
|
|
.rg-zm-l { font-size: 15px; }
|
|
.rg-zm-node { max-width: 128px; padding: 8px 10px; }
|
|
.rg-zm-node b, .rg-zm-node em { font-size: 14px; }
|
|
.rg-zm .rg-iso { height: 210px; min-height: 0; }
|
|
.rg-zm-tabs { justify-content: flex-start; width: 100%; }
|
|
.rg-zm-tabs button { min-height: 44px; padding: 0 14px; }
|
|
.rg-zm-p { font-size: 14px; min-height: 6.4em; }
|
|
}
|
|
|
|
/* ---------- 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.rg { --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)); }
|
|
.rg .lx-ghost { border-color: light-dark(rgba(0, 0, 0, .14), var(--border-control)); }
|
|
.rg .lx-dark .lx-ghost { border-color: rgba(255, 255, 255, .22); }
|
|
.rg .lx-dark .lx-cta { background: light-dark(#fafafa, var(--primary)); }
|
|
@media (hover: hover) { .rg .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 */
|
|
.rg .lx-close-art, .rg .lx-rel-card { background: light-dark(#f5f5f5, var(--surface-2)); }
|
|
.rg-rc-cap[hidden] { display: none; }
|
|
|
|
/* dark: the selected zoom tab is a primary fill; its h3 (global h3 colour) and its number follow the on-primary colour */
|
|
html:not(.light) .rg-zm-tabs button[aria-selected='true'] h3 { color: inherit; }
|
|
html:not(.light) .rg-zm-tabs button[aria-selected='true'] .rg-zm-n { color: color-mix(in srgb, var(--primary-foreground) 60%, transparent); }
|