Files

368 lines
36 KiB
CSS

/* Guard v2 (prefix gd-). Deck greys only. One dark room: the hero. */
.gd { --acc: #0a0a0a; --glow: #525252; }
/* dark (Hanzo's :not(.light)): v2scale.css pins .v2's greys to light values, so the page hands them back to Hanzo's tokens */
html:not(.light) .gd { --ink: var(--foreground); --soft: var(--muted-foreground); --faint: var(--text-tertiary); --line: var(--border); --card: var(--muted); --acc: var(--foreground); --glow: var(--muted-foreground); background: var(--bg); }
.gd .v2-dark, .gd [data-room='dark'] { --acc: #f5f5f5; --glow: #e5e5e5; }
/* hero: the black room, a left-set head (5/13) beside the composer (8/13); the next section peeks 56px at the fold */
.gd-hero { box-sizing: border-box; min-height: calc(100svh - var(--x-top, 60px) - 56px); display: flex; align-items: center; padding: clamp(84px, 6vw, 96px) 0 clamp(44px, 5vw, 56px); }
.gd-hero .v2-kick.acc { color: var(--glow); }
.gd-hero-g { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); column-gap: 44px; align-items: center; }
.gd-hero-t { text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
.gd-h1 { margin: 0; }
.gd-sub { margin-top: 16px; color: #f5f5f5; max-width: 22ch; text-align: left; text-wrap: balance; }
.gd-acts { margin-top: 27px; justify-content: flex-start; }
.gd-ask { transition: background-color 150ms cubic-bezier(0, 0, .2, 1), box-shadow 150ms cubic-bezier(0, 0, .2, 1), transform 90ms cubic-bezier(0, 0, .2, 1); }
@media (hover: hover) { .gd-hero .gd-ask.solid:hover { background: #e4e4e7; box-shadow: 0 0 0 4px rgba(255, 255, 255, .14); } }
.gd-ask:active { transform: scale(.97); }
.gd-lift { min-width: 0; }
.gd-tilt { transition: transform 400ms cubic-bezier(.16, 1, .3, 1); will-change: transform; }
/* the composer is a flat graphite surface in the black room: no outline, no shadow, so it reads as the room's own floor */
.gd-comp { border-radius: 28px; background: #171717; overflow: hidden; color: #f5f5f5; }
.gd-comp-bar { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #a3a3a3; }
.gd-dot { width: 8px; height: 8px; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1.5px #737373; transition: background-color 300ms cubic-bezier(0, 0, .2, 1), box-shadow 300ms cubic-bezier(0, 0, .2, 1); }
.gd-dot.on { background: #fafafa; box-shadow: none; }
.gd-dot.r { margin-left: auto; }
.gd-arr { display: inline-block; vertical-align: -1px; margin: 0 4px; }
/* the drawn request and reply: word shapes (grey), secrets (lighter, they become markers), the injection run (underlined once read) */
.gd-w { display: inline-block; width: calc(var(--l) * .62em); height: .5em; margin: 0 .3em .22em 0; vertical-align: middle; border-radius: 99px; background: rgba(255, 255, 255, .22); transform-origin: left; animation: gd-grow 220ms cubic-bezier(.16, 1, .3, 1) both; }
.gd-w.sec { background: rgba(255, 255, 255, .55); }
@keyframes gd-grow { from { transform: scaleX(0); } to { transform: none; } }
/* the typed values: data in mono, the injection's name in the sans; a gap between them, no punctuation invented */
.gd-tv { margin-right: .5em; }
.gd-tv.sec { font-family: var(--mono); font-size: .82em; color: #fafafa; }
.gd-injr { display: inline; border-bottom: 1.5px solid transparent; padding-bottom: 6px; transition: border-color 300ms cubic-bezier(0, 0, .2, 1); }
.gd-injr.on { border-bottom-style: dashed; border-color: #a3a3a3; }
.gd-mk::before, .gd-mkt::before { content: '['; }
.gd-mk::after, .gd-mkt::after { content: ']'; }
.gd-out .gd-mk::before, .gd-out .gd-mk::after { content: none; }
.gd-over { color: #737373; transition: color 300ms cubic-bezier(0, 0, .2, 1), transform 300ms cubic-bezier(.16, 1, .3, 1); transform: scale(.8); }
.gd-over.on { color: #fafafa; transform: none; }
.gd-comp-bar em { margin-left: auto; font-style: normal; color: var(--glow); letter-spacing: .04em; text-transform: none; }
.gd-msg { padding: 20px clamp(22px, 3vw, 40px); }
.gd-msg.it { border-top: 1px solid rgba(255, 255, 255, .06); opacity: .38; transition: opacity .5s var(--e); }
.gd-msg.it.on { opacity: 1; }
.gd-who { margin: 0 0 12px; font: 500 13px/1 var(--mono); color: #a3a3a3; }
.gd-who span { color: #a3a3a3; }
/* the request's label leaves room for the value a lit marker shows above itself, so the two never touch */
.gd-msg.me .gd-who { margin-bottom: 28px; }
.gd-body { margin: 0; min-height: 2.9em; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.42; letter-spacing: -.015em; color: #f5f5f5; text-wrap: pretty; }
.gd-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.16em; background: var(--glow); animation: gd-blink 1s steps(1) infinite; }
@keyframes gd-blink { 50% { opacity: 0; } }
[data-off] .gd-caret { animation-play-state: paused; }
.gd-wait { color: #a3a3a3; }
.gd-mk { display: inline-block; padding: 0 .3em; margin: 0 .05em; border-radius: 8px; background: rgba(163, 163, 163, .16); color: var(--glow); font-family: var(--mono); font-size: .82em; font-weight: 500; vertical-align: .04em; }
.gd-inj { text-decoration: underline wavy rgba(115, 115, 115, .9); text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.gd-conf { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 14px clamp(22px, 3vw, 40px); background: rgba(255, 255, 255, .03); font: 500 13px/1 var(--mono); color: #a3a3a3; }
.gd-bar { position: relative; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.gd-bar i { position: absolute; inset: 0; border-radius: 99px; background: linear-gradient(90deg, #d4d4d4, #737373); transform-origin: left; }
.gd-bar b { position: absolute; top: -6px; bottom: -6px; width: 2px; background: #f5f5f5; border-radius: 2px; }
.gd-conf em { font-style: normal; color: #a3a3a3; transition: color .3s; }
.gd-conf em.on { color: #fafafa; }
/* every wrap on this page sits in the one 1152px container and gutter (the shared wrap runs to 1440px) */
.gd .v2-wrap { width: min(100% - 2 * clamp(16px, 4vw, 32px), 1152px); padding-inline: 0; }
/* The six facts, as two plain sections of rows (no pin on this page): each row is the fact's words (5/13) beside its
own board (8/13); the board plays its arrival once it is on screen. */
.gd-fs { position: relative; padding: clamp(72px, 8vw, 116px) 0 0; }
.gd-fs + .gd-fs { padding-top: 0; }
.gd-ps-h { max-width: none; margin: 0 0 27px; font-size: 26px; line-height: 1.15; color: var(--ink); letter-spacing: -.02em; }
.gd-f { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); column-gap: 44px; align-items: center; padding: 44px 0; border-top: 1px solid var(--line); }
.gd-f-txt { min-width: 0; }
.gd-f-t { margin: 0; max-width: 18ch; font: 497 21px/1.2 var(--sans); letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.gd-f-n { margin: 10px 0 0; font-size: 12px; letter-spacing: .12em; color: var(--faint); transition: color 300ms cubic-bezier(0, 0, .2, 1); }
.gd-f-d { margin: 17px 0 0; font-size: 16px; line-height: 1.55; max-width: 62ch; }
.gd-f-more { display: none; }
.gd-f-vis { min-width: 0; }
.gd-f-vis .gd-board { height: auto; min-height: 340px; transition: transform 400ms cubic-bezier(.16, 1, .3, 1), background-color 300ms cubic-bezier(.4, 0, .2, 1); }
/* a row answers the pointer: its counter inks and its board lifts a little */
@media (hover: hover) and (pointer: fine) { .gd-f:hover .gd-f-n { color: var(--ink); } .gd-f:hover .gd-f-vis .gd-board { transform: translateY(-4px); } }
.gd-board { height: 100%; display: flex; align-items: center; padding: clamp(24px, 3vw, 44px); box-sizing: border-box; background: light-dark(#f5f5f5, var(--muted)); border-radius: 24px; overflow: hidden; transition: background-color 300ms cubic-bezier(.4, 0, .2, 1), box-shadow 300ms cubic-bezier(.4, 0, .2, 1); }
/* a surface per panel: quiet grey, muted tile, graphite, an outline on white, bare white, quiet grey with one ink card */
.gd-board[data-k='redact'] { background: var(--x-raised); }
html:not(.light) .gd-board[data-k='redact'] { box-shadow: inset 0 0 0 1px var(--border); }
.gd-board[data-k='lanes'] { background: #171717; color: #fafafa; }
.gd-board[data-k='dials'] { background: var(--x-raised); box-shadow: inset 0 0 0 1px light-dark(rgba(0, 0, 0, .1), var(--border)); }
.gd-board[data-k='log'] { background: light-dark(#e4e4e7, var(--muted)); }
.gd-board[data-k='log'] .gd-logl { background: light-dark(#fff, var(--secondary)); }
/* panel 05's own moment: the content is struck, then the hash's tick lands */
.gd-ps-board .gd-logl b, .gd-f-vis.on .gd-logl b { animation: gd-pop 400ms cubic-bezier(.16, 1, .3, 1) both; }
.gd-ps-board .gd-logl.no b, .gd-f-vis.on .gd-logl.no b { animation-delay: 300ms; }
.gd-ps-board .gd-logl.ok b, .gd-f-vis.on .gd-logl.ok b { animation-delay: 1800ms; }
.gd-board[data-k='lanes'] .gd-lane { background: #262626; }
.gd-board[data-k='lanes'] .gd-lane span, .gd-board[data-k='lanes'] .gd-b-off { color: #a3a3a3; }
.gd-board[data-k='lanes'] .gd-lane s { background: rgba(255, 255, 255, .2); }
.gd-board[data-k='lanes'] .gd-lane i { background: #fafafa; color: #0a0a0a; }
.gd-board[data-k='lanes'] .gd-b-off i { background: #404040; }
.gd-board[data-k='lanes'] .gd-b-off i::after { background: #a3a3a3; }
/* arrivals: they run on the desktop board (remounted per chapter) and on a phone card once it is on screen */
.gd-ps-board .gd-b-list li, .gd-f-vis.on .gd-b-list li { animation: gd-lit 500ms cubic-bezier(0, 0, .2, 1) both; animation-delay: calc(250ms + var(--j) * 160ms); }
@keyframes gd-lit { from { color: light-dark(#a3a3a3, var(--text-tertiary)); } to { color: var(--ink); } }
.gd-ps-board .gd-b-list li span, .gd-f-vis.on .gd-b-list li span { animation: gd-lit-n 500ms cubic-bezier(0, 0, .2, 1) both; animation-delay: calc(250ms + var(--j) * 160ms); }
@keyframes gd-lit-n { from { color: light-dark(#d4d4d4, var(--text-disabled)); } to { color: light-dark(#737373, var(--text-tertiary)); } }
/* the second fact: each value is read into its marker in turn (the value fades and is struck, the marker lands) */
.gd-ps-board .gd-red .gd-rv, .gd-f-vis.on .gd-red .gd-rv { animation: gd-read 400ms cubic-bezier(0, 0, .2, 1) both; animation-delay: calc(400ms + var(--j) * 260ms); }
@keyframes gd-read { from { color: var(--ink); text-decoration-color: transparent; } to { color: light-dark(#a3a3a3, var(--text-tertiary)); text-decoration-color: light-dark(#a3a3a3, var(--text-tertiary)); } }
.gd-ps-board .gd-red .gd-mkt, .gd-f-vis.on .gd-red .gd-mkt { animation: gd-pop 400ms cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(560ms + var(--j) * 260ms); }
.gd-ps-board .gd-luhn, .gd-f-vis.on .gd-luhn { animation: gd-pop 400ms cubic-bezier(.16, 1, .3, 1) 900ms both; }
@keyframes gd-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.gd-lane { position: relative; }
.gd-lane > b, .gd-lane > i, .gd-lane > span { position: relative; z-index: 1; }
.gd-tokw { position: absolute; top: 50%; left: 120px; right: 110px; height: 0; pointer-events: none; }
.gd-tok { position: absolute; inset: 0; display: block; }
.gd-tok::after { content: ''; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 99px; background: #fafafa; }
.gd-ps-board .gd-tok, .gd-f-vis.on .gd-tok { animation: gd-run 1600ms cubic-bezier(.4, 0, .2, 1) 500ms 2 both; }
.gd-ps-board .gd-lane.back .gd-tok, .gd-f-vis.on .gd-lane.back .gd-tok { animation-direction: reverse; animation-delay: 1300ms; }
@keyframes gd-run { from { transform: translateX(0); } to { transform: translateX(100%); } }
/* the one real switch ("each detector") flips on as the panel arrives, then follows the playground both ways */
.gd-ps-board .gd-b-dials .sw[aria-checked='true'], .gd-f-vis.on .gd-b-dials .sw[aria-checked='true'] { animation: gd-sw-bg 300ms cubic-bezier(.16, 1, .3, 1) 400ms both; }
.gd-ps-board .gd-b-dials .sw[aria-checked='true']::after, .gd-f-vis.on .gd-b-dials .sw[aria-checked='true']::after { animation: gd-sw 300ms cubic-bezier(.16, 1, .3, 1) 400ms both; }
.gd-ps-board .gd-b-dials i.thr::after, .gd-f-vis.on .gd-b-dials i.thr::after { animation: gd-pop 400ms cubic-bezier(.16, 1, .3, 1) 600ms both; }
@keyframes gd-sw-bg { from { background: light-dark(#d4d4d4, var(--secondary)); } to { background: var(--ink); } }
@keyframes gd-sw { from { transform: translateX(-18px); } to { transform: none; } }
.gd-ps-board .gd-b-dials i.bucket, .gd-f-vis.on .gd-b-dials i.bucket { animation: gd-drain 1400ms cubic-bezier(.4, 0, .2, 1) 1100ms both; }
@keyframes gd-drain { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 57% 0 0); } }
.gd-logl > span { position: relative; }
.gd-logl.no { text-decoration: none; }
.gd-logl.no > span::after { content: ''; position: absolute; left: 0; right: 0; top: 52%; height: 1.5px; background: light-dark(rgba(38, 38, 38, .6), var(--border-selected)); transform-origin: left; }
.gd-ps-board .gd-logl.no > span::after, .gd-f-vis.on .gd-logl.no > span::after { animation: gd-strike 500ms cubic-bezier(.4, 0, .2, 1) 400ms both; }
@keyframes gd-strike { from { transform: scaleX(0); } to { transform: none; } }
.gd-ps-board .gd-logl.ok > span, .gd-f-vis.on .gd-logl.ok > span { animation: gd-write 900ms steps(19) 900ms both; }
@keyframes gd-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.gd-wire { grid-column: 2; grid-row: 1 / span 2; width: 100%; height: 100%; overflow: visible; }
.gd-wire path { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 240; stroke-dashoffset: 0; }
.gd-ps-board .gd-wire path, .gd-f-vis.on .gd-wire path { animation: gd-draw 900ms cubic-bezier(.4, 0, .2, 1) 500ms both; }
.gd-ps-board .gd-wire path + path, .gd-f-vis.on .gd-wire path + path { animation-delay: 650ms; }
@keyframes gd-draw { from { stroke-dashoffset: 240; } to { stroke-dashoffset: 0; } }
.gd-b { width: 100%; }
.gd-b-list ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; }
.gd-b-list li { display: flex; align-items: baseline; gap: 17px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 400; font-size: 19px; letter-spacing: -.01em; }
.gd-b-list li span { font: 500 12px/1 var(--mono); color: var(--faint); }
.gd-b-conf { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-top: 28px; font: 500 13px/1 var(--mono); color: var(--soft); }
.gd-b-conf div { height: 8px; border-radius: 99px; background: light-dark(#e4e4e4, var(--secondary)); overflow: hidden; }
.gd-b-conf i { display: block; height: 100%; background: linear-gradient(90deg, light-dark(#d4d4d4, var(--secondary-hover)), light-dark(#737373, var(--muted-foreground))); transform-origin: left; border-radius: 99px; }
/* one run of data, read value by value: a hairline row each, left-aligned, the value then its marker */
.gd-red { display: grid; }
.gd-red p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.gd-red p:last-child { border-bottom: 0; }
.gd-rv { font: 400 17px/1.3 var(--mono); color: light-dark(#a3a3a3, var(--text-tertiary)); text-decoration: line-through; text-decoration-color: light-dark(#a3a3a3, var(--text-tertiary)); text-decoration-thickness: 1px; letter-spacing: -.01em; }
.gd-red .gd-arr { color: var(--faint); }
.gd-red .gd-mkt { font: 500 15px/1.25 var(--mono); padding: 4px 10px; border-radius: 8px; background: light-dark(#f5f5f5, var(--secondary)); color: var(--ink); letter-spacing: -.01em; }
.gd-luhn { flex: none; white-space: nowrap; font: 500 12px/1 var(--mono); padding: 6px 10px; border-radius: 999px; background: var(--ink); color: var(--x-on-ink); }
/* both directions as two lanes through the same gate */
.gd-b-lanes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.gd-lane { display: grid; grid-template-columns: 84px minmax(16px, 1fr) auto minmax(16px, 1fr) auto; align-items: center; gap: 12px; padding: 22px 24px; border-radius: 16px; background: light-dark(#fff, var(--secondary)); }
.gd-lane b { font-weight: 497; font-size: 19px; line-height: 1.1; letter-spacing: -.02em; }
.gd-lane s { height: 1px; background: light-dark(#d4d4d4, var(--border-strong)); text-decoration: none; }
.gd-lane span { font: 500 13px/1 var(--mono); color: var(--soft); }
.gd-lane i { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; font-style: normal; padding: 10px 14px; border-radius: 999px; background: var(--ink); color: var(--x-on-ink); }
.gd-b-off { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 12px 0 0; font: 500 13px/1.3 var(--mono); color: var(--soft); }
/* "available and off": a hollow ring, a status mark, not a control that looks flippable */
.gd-b-off i { flex: none; width: 12px; height: 12px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px currentColor; }
.gd-b-dials ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; }
.gd-b-dials li { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 400; font-size: 19px; letter-spacing: -.01em; }
.gd-b-dials .sw { flex: none; position: relative; width: 44px; height: 26px; padding: 0; border: 0; border-radius: 99px; background: light-dark(#d4d4d4, var(--secondary)); cursor: pointer; transition: background-color 300ms cubic-bezier(0, 0, .2, 1), transform 90ms cubic-bezier(0, 0, .2, 1); }
.gd-b-dials .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 99px; background: light-dark(#fff, var(--foreground)); transition: transform 300ms cubic-bezier(.16, 1, .3, 1); }
html:not(.light) .gd-b-dials .sw[aria-checked='true']::after { background: var(--primary-foreground); }
.gd-b-dials .sw[aria-checked='true'] { background: var(--ink); }
.gd-b-dials .sw[aria-checked='true']::after { transform: translateX(18px); }
.gd-b-dials .mkb { flex: none; min-width: 64px; min-height: 44px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 999px; background: var(--x-raised); color: var(--ink); font: 500 14px/1 var(--mono); cursor: pointer; transition: background-color 150ms cubic-bezier(0, 0, .2, 1), color 150ms cubic-bezier(0, 0, .2, 1), transform 90ms cubic-bezier(0, 0, .2, 1); }
.gd-b-dials .sw:active, .gd-b-dials .mkb:active { transform: scale(.98); }
.gd-b-dials .sw:focus-visible, .gd-b-dials .mkb:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .gd-b-dials .mkb:hover { background: var(--ink); color: light-dark(#fafafa, var(--primary-foreground)); } .gd-b-dials .sw:hover { background: light-dark(#a3a3a3, var(--secondary-hover)); } .gd-b-dials .sw[aria-checked='true']:hover { background: light-dark(#262626, var(--primary-hover)); } }
/* the marks that are settings, not controls: a threshold bar with its tick, a dashed slot for your own patterns */
.gd-b-dials i.thr { flex: none; position: relative; width: 64px; height: 6px; border-radius: 99px; background: light-dark(#e4e4e4, var(--secondary)); }
.gd-b-dials i.thr::after { content: ''; position: absolute; left: 70%; top: -6px; width: 2px; height: 18px; border-radius: 2px; background: var(--ink); }
.gd-b-dials i.pat { flex: none; box-sizing: border-box; width: 44px; height: 26px; border-radius: 8px; border: 1.5px dashed light-dark(#a3a3a3, var(--border-selected)); }
.gd-b-dials i.bucket { width: 64px; height: 26px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--ink) 0 10px, transparent 10px 14px); }
.gd-logl { display: flex; align-items: center; gap: 17px; margin: 0 0 12px; padding: 22px 27px; border-radius: 16px; background: light-dark(#fff, var(--secondary)); font: 500 19px/1.2 var(--mono); letter-spacing: -.01em; }
.gd-logl b { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; font-family: var(--sans); }
.gd-logl.no { color: var(--faint); text-decoration: line-through; text-decoration-color: light-dark(rgba(38, 38, 38, .6), var(--border-selected)); }
.gd-logl.no b { background: light-dark(rgba(38, 38, 38, .1), var(--glass-strong)); color: light-dark(#262626, var(--foreground)); text-decoration: none; }
.gd-logl.ok b { background: var(--ink); color: var(--x-on-ink); }
/* three ways in: the proxy is the one in focus, the CLI tool and the MCP server are the smaller two beside it */
.gd-modes { display: grid; grid-template-columns: minmax(0, 1.35fr) 44px minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 12px 0; }
.gd-mode { grid-column: 3; }
.gd-mode.lead { grid-column: 1; }
.gd-mode { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 20px 24px; border-radius: 16px; background: light-dark(#fff, var(--secondary)); }
.gd-mode b { font-weight: 497; font-size: 19px; letter-spacing: -.02em; }
.gd-mode span { font: 500 13px/1.3 var(--mono); color: var(--soft); }
.gd-mode.lead { grid-row: 1 / span 2; padding: 27px; background: var(--ink); color: light-dark(#fafafa, var(--primary-foreground)); }
.gd-mode.lead b { font-size: 32px; letter-spacing: -.03em; }
.gd-mode.lead span { color: light-dark(#a3a3a3, var(--secondary-hover)); }
/* paste and ship, then paste your own: standard section padding, no dead white between them; it arrives over the
stage's last 16px as the pin lets go */
.gd .gd-sp { padding: 44px 0 0; }
.gd-yours .v2-grid { align-items: start; }
.gd-yours { padding: clamp(72px, 8vw, 116px) 0 !important; }
/* the close: its label and line get room under "Get Guard" */
.gd-gi .gi-lead { margin-top: 17px; }
.gd-gi .gi-tag { margin-top: 10px; }
.gd-gi .gi-meta { margin-top: 27px; }
/* the close's "View on GitHub" is the one solid fill in its screen (the header's ask goes quiet beside it) */
.gd .gd-gi .x-btn.solid:active { transform: scale(.98); }
/* the close ends on standard padding, not a band of white before the footer */
.gd .gd-gi { padding-bottom: clamp(44px, 5vw, 72px); }
.gd-gi .gi-more a { display: inline-flex; align-items: center; min-height: 44px; }
/* the playground is one object across the grid: the dials down the left (5/13), the request and what the model reads on the right */
.gd-ed { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); grid-template-areas: 'dials in' 'dials out'; overflow: hidden; border-radius: 24px; background: var(--x-raised); box-shadow: inset 0 0 0 1px light-dark(rgba(0, 0, 0, .1), var(--border)); }
.gd-ed-in { grid-area: in; padding: 28px 32px 8px; }
.gd-ed-k { display: block; margin: 0 0 12px; font: 500 13px/1 var(--mono); color: var(--faint); }
.gd-ed-k span { color: var(--soft); }
.gd-ed textarea { width: 100%; box-sizing: border-box; border: 0; resize: none; field-sizing: content; min-height: 4.4em; max-height: 14em; padding: 0; font: 400 clamp(18px, 1.6vw, 22px)/1.45 var(--sans); letter-spacing: -.01em; color: var(--ink); background: transparent; outline: none; }
.gd-ed-in:focus-within { outline: 2px solid var(--ink); outline-offset: -6px; border-radius: 20px; }
.gd-ed-dials { grid-area: dials; display: flex; flex-direction: column; align-items: flex-start; gap: 27px; padding: 28px 32px; border-right: 1px solid var(--line); background: var(--x-sunk); }
.gd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* the detectors are outlined toggles: on is an ink outline with a tick, off a hairline; no wall of solid fills */
.gd-chips button, .gd-seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--x-raised); font: 500 13px/1 var(--mono); color: var(--faint); white-space: nowrap; cursor: pointer; transition: background-color 150ms cubic-bezier(0, 0, .2, 1), color 150ms cubic-bezier(0, 0, .2, 1), border-color 150ms cubic-bezier(0, 0, .2, 1), transform 90ms cubic-bezier(0, 0, .2, 1); }
.gd-chips button::before { content: ''; flex: none; width: 9px; height: 5px; margin-top: -3px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg) scale(0); transition: transform 300ms cubic-bezier(.16, 1, .3, 1); }
.gd-chips button[aria-pressed='true'] { border-color: var(--ink); color: var(--ink); }
.gd-chips button[aria-pressed='true']::before { transform: rotate(-45deg) scale(1); }
.gd-chips button:active, .gd-seg button:active, .gd-ed-x:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .gd-chips button:hover { border-color: var(--ink); color: var(--ink); background: light-dark(#f5f5f5, var(--secondary)); } .gd-seg button:hover:not([aria-checked='true']) { background: light-dark(rgba(0, 0, 0, .05), var(--glass)); color: var(--ink); } .gd-ed-x:hover { background: light-dark(#f5f5f5, var(--secondary)); } }
.gd-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 24px; background: light-dark(#ededed, var(--muted)); }
.gd-seg button { border: 0; background: none; }
.gd-seg button[aria-checked='true'] { background: var(--x-knob); color: var(--ink); }
.gd-chips button:focus-visible, .gd-seg button:focus-visible, .gd-ed-x:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.gd-ed-out { grid-area: out; padding: 24px 32px 28px; border-top: 1px solid var(--line); }
.gd-out { margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; letter-spacing: -.01em; min-height: 3em; word-break: break-word; }
.gd-out .gd-mk { background: light-dark(rgba(82, 82, 82, .1), var(--glass-strong)); color: var(--ink); }
.gd-ed-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 20px 0 0; font: 500 13px/1 var(--mono); color: var(--soft); }
.gd-ed-f > span { padding: 8px 10px; border-radius: 999px; background: light-dark(#f5f5f5, var(--secondary)); }
.gd-ed-f b { font-weight: 606; color: var(--ink); }
.gd-ed-in textarea { min-height: 5.8em; }
.gd-ed-inj { color: light-dark(#262626, var(--foreground)); background: light-dark(rgba(38, 38, 38, .07), var(--glass)) !important; }
.gd-ed-x { margin-left: auto; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: 500 15px/1 var(--sans); cursor: pointer; transition: background-color 150ms cubic-bezier(0, 0, .2, 1), transform 90ms cubic-bezier(0, 0, .2, 1); }
@media (max-width: 900px) {
.gd-hero { min-height: 0; display: block; padding: 88px 0 72px; }
.gd-hero-g { grid-template-columns: minmax(0, 1fr); row-gap: 27px; }
.gd-comp { border-radius: 22px; }
.gd-msg { padding: 18px 20px; }
.gd-body { font-size: 18px; min-height: 4.3em; }
.gd-conf { grid-template-columns: 1fr auto; gap: 10px; padding: 12px 20px; }
.gd-conf > span { grid-column: 1 / -1; }
.gd-fs { padding-top: 72px; }
.gd-ps-h { margin-bottom: 17px; }
.gd-f-d { max-width: none; }
.gd-lane { grid-template-columns: auto minmax(8px, 1fr) auto minmax(8px, 1fr) auto; gap: 8px; padding: 14px; }
.gd-lane b { font-size: 16px; }
.gd-lane i { padding: 8px 10px; font-size: 11px; }
.gd-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 12px; }
.gd-mode { grid-column: auto; padding: 14px; }
.gd-wire { display: none; }
.gd-tokw { left: 104px; right: 84px; }
.gd-lane span { white-space: nowrap; font-size: 12px; }
.gd-board[data-k='lanes'] .gd-lane { padding: 14px 12px; gap: 6px; }
.gd-msg.it .gd-body { padding-right: 52px; }
.gd-lane .gd-arr { margin: 0 2px 0 0; }
.gd-mode span { white-space: nowrap; }
.gd-mode.lead { grid-column: 1 / -1; grid-row: auto; padding: 18px; }
.gd-mode.lead b { font-size: 26px; }
/* phones: each fact is the board first, then its title, "0N / 06" and the words clamped to three lines behind Read more */
.gd-f { display: flex; flex-direction: column; align-items: stretch; padding: 27px 0 44px; }
.gd-f-n { margin: 8px 0 0; }
.gd-f-d { margin-top: 10px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.gd-f-d[data-open] { display: block; -webkit-line-clamp: none; overflow: visible; }
.gd-f-more { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: 500 15px/1 var(--sans); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; transition: transform 90ms cubic-bezier(0, 0, .2, 1); }
.gd-f-more:active { transform: scale(.97); }
.gd-f-more:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.gd-f-vis { display: block; order: -1; margin: 0 0 17px; }
.gd-f-vis .gd-board { height: auto; min-height: 280px; }
.gd-board { padding: 18px; border-radius: 20px; }
.gd-b-list ol, .gd-b-dials ul, .gd-b-lanes { grid-template-columns: minmax(0, 1fr); }
.gd-red p { padding: 8px 0; }
.gd-rv { font-size: 14px; }
.gd-red .gd-mkt { font-size: 14px; }
.gd-b-list li { padding: 8px 0; font-size: 16px; }
.gd-b-conf { margin-top: 12px; }
.gd-luhn { font-size: 11px; padding: 4px 7px; }
.gd-lane { padding: 16px 18px; }
.gd-lane b { font-size: 19px; }
.gd-b-dials li { padding: 10px 0; font-size: 16px; }
.gd-logl { padding: 16px; font-size: 16px; }
.gd-modes div { padding: 16px; }
.gd-modes b { font-size: 19px; }
.gd-ed { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'in' 'dials' 'out'; }
.gd-ed-in, .gd-ed-out { padding-inline: 20px; }
.gd-ed-dials { gap: 17px; padding: 16px 20px; border-right: 0; border-top: 1px solid var(--line); }
.gd-chips button, .gd-seg button { padding: 0 12px; }
.gd-sp pre, .gd-sp code { white-space: pre-wrap; word-break: break-word; }
.gd-gi .gi-art { position: relative; right: auto; top: auto; width: 72%; margin: 27px auto 0; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
.gd-tilt, .gd-f-vis .gd-board { transform: none !important; }
.gd-board *, .gd-board *::after, .gd-w { animation: none !important; }
}
/* THE SIGNATURE: a spotlight in the black composer. A dark veil with one round light (its centre in --gd-sx/--gd-sy,
set by the pointer, a tap, the arrow keys, or the idle drift); what is under the light shows its detail. */
@property --gd-sx { syntax: '<length-percentage>'; inherits: true; initial-value: 30%; }
@property --gd-sy { syntax: '<length-percentage>'; inherits: true; initial-value: 40%; }
.gd-comp { position: relative; }
.gd-comp.drift { transition: --gd-sx 900ms cubic-bezier(.4, 0, .2, 1), --gd-sy 900ms cubic-bezier(.4, 0, .2, 1); }
.gd-spot { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle 210px at var(--gd-sx) var(--gd-sy), rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .6) 100%); }
.gd-spotk { position: relative; border-radius: 28px; outline: none; cursor: crosshair; touch-action: manipulation; }
.gd-spotk:focus-visible { box-shadow: 0 0 0 2px #fafafa, 0 0 0 4px #0a0a0a; }
.gd-mk { position: relative; transition: background-color 300ms cubic-bezier(0, 0, .2, 1), color 300ms cubic-bezier(0, 0, .2, 1); }
.gd-mk-v { position: absolute; left: 0; bottom: calc(100% + 6px); white-space: nowrap; font: 500 12px/1 var(--mono); color: #a3a3a3; text-decoration: line-through; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity 300ms cubic-bezier(0, 0, .2, 1), transform 300ms cubic-bezier(.16, 1, .3, 1); }
.gd-comp .gd-mk[data-lit] { background: rgba(250, 250, 250, .16); color: #fafafa; }
.gd-comp .gd-mk[data-lit] .gd-mk-v { opacity: 1; transform: none; }
.gd-comp .gd-injr[data-lit] { border-bottom-style: solid; border-color: #fafafa; }
.gd-conf { transition: background-color 300ms cubic-bezier(0, 0, .2, 1), color 300ms cubic-bezier(0, 0, .2, 1); }
.gd-conf[data-lit] { background: rgba(255, 255, 255, .08); color: #fafafa; }
.gd-out .gd-mk-v { display: none; }
@media (prefers-reduced-motion: reduce) {
.gd-spot { display: none; }
.gd-comp .gd-mk .gd-mk-v { opacity: 1; transform: none; }
.gd-spotk { cursor: auto; }
}
/* ENTRANCES (MOTION-MAP /guard, in order). A section is only "armed" by script once mounted, below the fold, with
motion allowed; it plays once when a quarter of it is on screen. The resting state is the HTML. */
/* 1 zoom-through: the first facts fly in from far behind the screen */
.gd-fs[data-entrance='zoom-through'][data-arm] > .gd-fs-in { transform: perspective(1200px) translate3d(0, 40px, -720px); opacity: 0; transition: transform 900ms cubic-bezier(.16, 1, .3, 1), opacity 500ms cubic-bezier(0, 0, .2, 1); transform-origin: 50% 30%; }
.gd-fs[data-entrance='zoom-through'][data-arm][data-in] > .gd-fs-in { transform: none; opacity: 1; }
/* 2 stack-drop: the next three rows drop from above and stack onto each other, one after another */
.gd-fs[data-entrance='stack-drop'][data-arm] .gd-f { transform: translate3d(0, -64px, 0); opacity: 0; transition: transform 600ms cubic-bezier(.16, 1, .3, 1), opacity 300ms cubic-bezier(0, 0, .2, 1); transition-delay: calc(var(--k) * 180ms); }
.gd-fs[data-entrance='stack-drop'][data-arm][data-in] .gd-f { transform: none; opacity: 1; }
/* 3 vertical-ticker: the agent prompt rides up a vertical ticker into place, in ticks */
.gd-tk { overflow: clip; overflow-clip-margin: 24px; }
.gd-tk[data-arm] > .gd-tk-in { transform: translate3d(0, 100%, 0); }
.gd-tk[data-arm][data-in] > .gd-tk-in { animation: gd-ticker 900ms both; }
@keyframes gd-ticker {
0% { transform: translate3d(0, 100%, 0); animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
30% { transform: translate3d(0, 64%, 0); animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
58% { transform: translate3d(0, 30%, 0); animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
100% { transform: none; }
}
/* 4 letter-cascade: the playground's detector names fall into place letter by letter */
.gd-lc { display: inline-block; white-space: pre; }
.gd-yours[data-arm] .gd-lc { transform: translate3d(0, -.9em, 0); opacity: 0; transition: transform 400ms cubic-bezier(.16, 1, .3, 1), opacity 250ms cubic-bezier(0, 0, .2, 1); transition-delay: calc(var(--c) * 14ms); }
.gd-yours[data-arm][data-in] .gd-lc { transform: none; opacity: 1; }
/* 5 ink-spread: the close is revealed by an ink blot spreading from three points */
@property --gd-ink { syntax: '<percentage>'; inherits: false; initial-value: 160%; }
.gd-ink[data-arm] { --gd-ink: 0%; -webkit-mask-image: radial-gradient(circle at 28% 62%, #000 var(--gd-ink), transparent calc(var(--gd-ink) + 2%)), radial-gradient(circle at 64% 38%, #000 calc(var(--gd-ink) * .8), transparent calc(var(--gd-ink) * .8 + 2%)), radial-gradient(circle at 82% 78%, #000 calc(var(--gd-ink) * .6), transparent calc(var(--gd-ink) * .6 + 2%)); mask-image: radial-gradient(circle at 28% 62%, #000 var(--gd-ink), transparent calc(var(--gd-ink) + 2%)), radial-gradient(circle at 64% 38%, #000 calc(var(--gd-ink) * .8), transparent calc(var(--gd-ink) * .8 + 2%)), radial-gradient(circle at 82% 78%, #000 calc(var(--gd-ink) * .6), transparent calc(var(--gd-ink) * .6 + 2%)); transition: --gd-ink 1200ms cubic-bezier(.4, 0, .2, 1); }
.gd-ink[data-arm][data-in] { --gd-ink: 160%; }
/* the agent prompt's Copy answers: a fill and the icon lifts; press is .97 */
.gd-sp .x-codeblock-h button { transition: background-color 150ms cubic-bezier(0, 0, .2, 1), color 150ms cubic-bezier(0, 0, .2, 1), transform 90ms cubic-bezier(0, 0, .2, 1); }
.gd-sp .x-codeblock-h button svg { transition: transform 300ms cubic-bezier(.16, 1, .3, 1); }
@media (hover: hover) { .gd-sp .x-codeblock-h button:hover { background: rgba(255, 255, 255, .14); color: #fafafa; } .gd-sp .x-codeblock-h button:hover svg { transform: translateY(-2px); } }
.gd-sp .x-codeblock-h button:active { transform: scale(.98); }
/* Copy keeps one width whether it reads "Copy" or "✓ Copied" */
.gd-sp .x-codeblock-h button { box-sizing: border-box; width: 96px; justify-content: center; }
/* the live object's pause control */
.gd-pause { top: auto; bottom: 16px; right: 16px; }
.gd .gd-pause { width: 44px; height: 44px; z-index: 3; }
/* phones: no text under 14px except 11-12px mono capitals */
@media (max-width: 900px) { .gd-ed-k, .gd-ed-k span, .gd-chips button, .gd-seg button { font-size: 14px; } }