Files
Claude 6a042f90bf tunnel: dark — halftone field as live (7px, 36%, top glow)
Dark only; the pinned stage keeps its sticky position. Bright unchanged (lightcheck 0 diffs), copycheck missing 0, 0 console errors.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P5YBdxX2mH7piDf4NGrmPi
2026-11-08 11:50:56 +00:00

418 lines
34 KiB
CSS

/* ---------- tunnel v2 (tn2-) ---------- */
/* hero: the URL is the headline */
.tn2-hero { padding-top: clamp(56px, 9svh, 116px); }
.tn2-kick { margin-top: 18px; }
.tn2-hero-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-top: 28px; }
.tn2-hero-row .l2-lede { grid-column: 1 / span 7; max-width: 48ch; }
.tn2-hero-row .l2-acts { grid-column: 10 / span 3; justify-self: end; }
.tn2-term { margin-top: clamp(56px, 8svh, 96px); padding: clamp(36px, 5svh, 56px) 0 clamp(40px, 6svh, 64px); background: #0a0a0a; color: #f5f5f5; }
.tn2-cmd { margin: 0; font-size: 26px; color: #d4d4d4; }
.tn2-ps { color: #a3a3a3; }
.tn2-caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 4px; vertical-align: -.15em; background: #f5f5f5; animation: tn2-blink 1s steps(1) infinite; }
.tn2-caret.off { display: none; }
@keyframes tn2-blink { 50% { opacity: 0; } }
.tn2-share { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 12px 0 0; font-size: 17px; color: #a3a3a3; opacity: 0; transition: opacity .4s; }
.tn2-share.on { opacity: 1; }
.tn2-url { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; margin: 18px 0 0; font-size: 64px; font-weight: 220; letter-spacing: -.045em; line-height: 1; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .9s var(--ease); }
.tn2-url.on { opacity: 1; transform: none; }
.tn2-url b { font-weight: 606; color: #737373; }
.tn2-url em { margin-left: 18px; font-size: 17px; font-style: normal; letter-spacing: 0; color: #d4d4d4; }
.tn2-lock { width: .36em; height: .36em; margin-right: .2em; border-radius: 50%; background: #f5f5f5; box-shadow: 0 0 0 .12em rgba(255, 255, 255, .2); align-self: center; }
/* signature: the wipe (the one dark room) */
.tn2-scene { position: relative; }
.tn2-scene-pin { position: relative; padding-block: 120px; }
.tn2-scene.pin .tn2-scene-pin { position: sticky; top: var(--x-top, 60px); height: calc(100svh - var(--x-top, 60px)); min-height: 600px; padding: 0; overflow: hidden; }
.tn2-scene-in { height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.tn2-cap { grid-column: 1 / span 4; position: relative; min-height: 380px; }
.tn2-cap-i { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(40px); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.tn2-cap-i.on { opacity: 1; transform: none; transition: opacity .7s var(--ease) .1s, transform .9s var(--ease) .1s; }
.tn2-cap-i .l2-ch-n { color: #a3a3a3; }
.tn2-cap-i .l2-body { margin-top: 16px; }
.tn2-stage { grid-column: 6 / span 7; position: relative; height: min(600px, 72svh); border-radius: 24px; background: #0f0f0f; border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; }
.tn2-laptop { position: absolute; left: 4%; bottom: 7%; z-index: 3; width: 56%; padding: 16px; border-radius: 20px; background: #171717; border: 1px solid rgba(255, 255, 255, .1); }
.tn2-net { display: flex; justify-content: space-between; margin: 0 0 12px; font-size: 13px; color: #a3a3a3; }
.tn2-net em { font-style: normal; color: #f5f5f5; }
.tn2-tw { min-height: 168px; padding: 14px; border-radius: 12px; background: #0a0a0a; font: 400 14px/1.6 var(--mono); color: #d4d4d4; }
.tn2-tw p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn2-tw .g { color: #f5f5f5; }
.tn2-tw .u { color: #f5f5f5; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.tn2-tw .d { color: #a3a3a3; }
.tn2-tw .x { color: #a3a3a3; font-style: italic; }
.tn2-bind { margin: 10px 0 0; font-size: 13px; color: #a3a3a3; text-align: right; }
.tn2-open { position: absolute; inset: 0; z-index: 1; background: radial-gradient(90% 90% at var(--mx, 80%) var(--my, 30%), #ffffff 0%, #e4e4e7 45%, #d4d4d4 100%); }
.tn2-open-k { position: absolute; left: 22px; top: 18px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #404040; }
.tn2-wire { position: absolute; left: 40%; right: 26%; top: 34%; height: 2px; background: rgba(0, 0, 0, .3); }
.tn2-wire span { position: absolute; left: 0; top: 12px; font-size: 13px; color: #404040; }
.tn2-wire b { position: absolute; inset: -4px 0 auto; height: 10px; animation: tn2-pk 1.2s linear infinite; will-change: transform; }
.tn2-wire b::before { content: ''; position: absolute; left: -5px; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px rgba(10, 10, 10, .15); }
.tn2-scene-pin.still .tn2-wire b { animation-play-state: paused; }
.tn2-pause { top: 20px !important; right: 24px !important; }
.tn2-scene.pin .tn2-pause { top: 24px !important; }
@keyframes tn2-pk { from { transform: translateX(100%); } to { transform: translateX(0); } }
.tn2-phone { position: absolute; right: 6%; top: 8%; z-index: 2; width: 26%; aspect-ratio: 9 / 18; padding: 8px; border-radius: 30px; background: #000; border: 1px solid rgba(255, 255, 255, .16); display: flex; flex-direction: column; gap: 8px; transition: box-shadow .5s; }
.tn2-phone.up { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.tn2-bar { display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 10px; border-radius: 12px; background: #171717; font-size: 13px; color: #d4d4d4; white-space: nowrap; overflow: hidden; }
.tn2-bar i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #737373; }
.tn2-phone.up .tn2-bar i { background: #f5f5f5; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }
.tn2-page { flex: 1; border-radius: 20px; background: #171717; overflow: hidden; display: grid; place-items: center; }
.tn2-site { width: 100%; height: 100%; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.tn2-site i { display: block; height: 10px; border-radius: 5px; background: #e4e4e7; }
.tn2-site i:first-child { height: 64px; border-radius: 12px; background: var(--ink); }
.tn2-site i:nth-child(3) { width: 70%; }
.tn2-none { margin: 0; padding: 0 10px; text-align: center; font: 500 13px/1.3 var(--mono); color: #a3a3a3; }
/* facts */
.tn2-facts-h { grid-column: 1 / span 6; align-self: start; position: sticky; top: 120px; max-width: 10ch; }
.tn2-list { grid-column: 8 / span 5; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 72px; }
.tn2-list .l2-ch-n { display: block; margin-top: 10px; color: light-dark(#525252, var(--muted-foreground)); }
.tn2-list .l2-title { font-size: 21px; }
.tn2-list > li { transition: opacity .4s var(--ease); }
.tn2-list > li .l2-title { transition: color .4s var(--ease); }
.tn2-list > li:not(.on) .l2-title { color: light-dark(#737373, var(--text-tertiary)); }
.tn2-list .l2-body { margin-top: 12px; text-wrap: balance; }
.tn2-modes { margin-top: 24px; padding: 18px; border-radius: 20px; background: light-dark(#f5f5f5, var(--surface-2)); }
.tn2-modes div { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: light-dark(#e4e4e7, var(--secondary)); }
.tn2-modes button { position: relative; flex: 1; min-height: 44px; border: 0; border-radius: 11px; background: none; font: 600 15px/1 var(--mono); color: light-dark(#525252, var(--muted-foreground)); cursor: pointer; transition: background .25s, color .25s, transform var(--dur-press, .1s) var(--ease); }
.tn2-modes button:active { transform: scale(.98); }
@media (hover: hover) { .tn2-modes button:hover { color: var(--ink); } }
.tn2-modes button[aria-checked='true'] { color: var(--ink); }
.tn2-modes button > span:last-child { position: relative; z-index: 1; }
.tn2-mode-bg { position: absolute; inset: 0; border-radius: 11px; background: light-dark(#fff, var(--secondary)); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); transition: box-shadow .25s var(--ease); }
@media (hover: hover) { .tn2-modes button[aria-checked='true']:hover .tn2-mode-bg { box-shadow: 0 0 0 1px light-dark(rgba(10, 10, 10, .2), var(--border-focus)), 0 6px 14px -6px rgba(0, 0, 0, .25); } }
.tn2-modes p { margin: 14px 4px 0; font-size: 17px; color: var(--soft); }
.tn2-modes p b { color: var(--ink); font-weight: 700; }
/* one command + beyond */
.tn2-one { background: light-dark(#f5f5f5, var(--surface-2)); }
.tn2-one-l { grid-column: 1 / span 6; }
.tn2-one-l .l2-body { margin-top: 18px; }
.tn2-one-l .l2-acts { margin-top: 28px; }
.tn2-code { margin-top: 40px; }
.tn2-code .cf-code { border-radius: 22px; }
.tn2-one-r { grid-column: 8 / span 5; align-self: center; }
.tn2-one-r .cf-code { border-radius: 22px; }
.tn2-name-in-list { margin-top: 24px; }
.tn2-name-in-list .tn2-name { box-shadow: none; }
.tn2-name { padding: 30px; border-radius: 24px; background: var(--x-raised); border: 1px solid var(--hair); }
.tn2-name-in { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 10px; margin-top: 18px; }
.tn2-name label { display: flex; flex-direction: column; gap: 8px; }
.tn2-name label span { font: 500 13px/1 var(--mono); color: light-dark(#525252, var(--muted-foreground)); }
.tn2-name input { width: 100%; min-width: 0; height: 52px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--hair); background: light-dark(#f5f5f5, var(--surface-2)); font: 500 17px/1 var(--mono); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.tn2-name input:focus { background: var(--x-raised); border-color: var(--ink); box-shadow: 0 0 0 4px light-dark(rgba(10, 10, 10, .1), var(--border)); }
.tn2-name-cmd { margin: 22px 0 0; padding: 14px 16px; border-radius: 12px; background: #0a0a0a; color: #f5f5f5; font-size: 16px; overflow-x: auto; white-space: nowrap; }
.tn2-name-url { margin: 18px 0 0; font-size: 26px; line-height: 1.2; font-weight: 497; letter-spacing: -.03em; color: var(--soft); overflow-wrap: anywhere; }
.tn2-name-url b { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .15em; }
.tn2-name-note { margin: 8px 0 0; font-size: 16px; color: light-dark(#525252, var(--muted-foreground)); }
@media (max-width: 900px) {
.tn2-hero { padding-top: 112px; }
.tn2-hero-row { display: block; }
.tn2-hero-row .l2-acts { margin-top: 28px; justify-content: flex-start; }
.tn2-url { font-size: 26px; }
.tn2-url em { margin: 8px 0 0; flex-basis: 100%; }
.tn2-scene-in { display: block; }
.tn2-cap { min-height: 0; display: flex; flex-direction: column; gap: 48px; }
.tn2-cap-i { position: relative; opacity: 1; transform: none; }
.tn2-stage { height: 520px; margin-top: 48px; }
.tn2-laptop { left: 3%; right: 3%; width: auto; bottom: 3%; }
.tn2-phone { width: 38%; right: 5%; top: 5%; }
.tn2-wire { left: 14%; right: 48%; top: 22%; }
.tn2-tw { min-height: 150px; font-size: 13px; }
.tn2-facts-h { grid-column: auto; position: relative; top: auto; max-width: none; }
.tn2-list { grid-column: auto; margin-top: 56px; gap: 56px; }
.tn2-one-l, .tn2-one-r { grid-column: auto; }
.tn2-one-r { margin-top: 48px; }
.tn2-name { padding: 22px; }
.tn2-name-in { grid-template-columns: 1fr; }
.tn2-bar, .tn2-ps, .tn2-none, .tn2-net, .tn2-bind, .tn2-name label span, .tn2-open-k, .tn2-wire span { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .tn2-caret, .tn2-wire b { animation: none; } }
/* the close's object */
.tn2-end { padding: 30px; border-radius: 24px; background: light-dark(#f5f5f5, var(--surface-2)); color: var(--ink); }
.tn2-end-k { margin: 0; font-size: 16px; color: light-dark(#404040, var(--text-secondary)); }
.tn2-end-k span { color: light-dark(#525252, var(--muted-foreground)); }
.tn2-end-u { display: flex; align-items: baseline; flex-wrap: wrap; margin: 18px 0 0; font-size: 44px; font-weight: 497; letter-spacing: -.04em; line-height: 1.05; }
.tn2-end-u b { font-weight: 606; color: light-dark(#525252, var(--muted-foreground)); }
.tn2-end-u i { width: 14px; height: 14px; margin-right: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px light-dark(rgba(10, 10, 10, .1), var(--border)); align-self: center; }
.tn2-end-t { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid light-dark(rgba(0, 0, 0, .1), var(--border)); font-size: 14px; color: light-dark(#404040, var(--text-secondary)); }
@media (max-width: 900px) {
.tn2-scene:not(.pin) .tn2-scene-in { display: flex; flex-direction: column; }
.tn2-scene:not(.pin) .tn2-cap { display: contents; }
.tn2-scene:not(.pin) .tn2-cap-i:first-child { order: 1; }
.tn2-scene:not(.pin) .tn2-stage { order: 2; margin: 40px 0 48px; }
.tn2-scene:not(.pin) .tn2-cap-i:last-child { order: 3; }
.tn2-end-u { font-size: 26px; }
}
/* hero: requests keep arriving once the URL is up */
.tn2-term { position: relative; }
.tn2-term-pause { position: absolute !important; top: 16px !important; right: 24px !important; }
.tn2-hits { position: relative; display: inline-block; overflow: hidden; height: 1.5em; min-width: 24ch; }
.tn2-hit { display: block; color: #f5f5f5; animation: tn2-hit .6s var(--ease-emphasis, cubic-bezier(.16, 1, .3, 1)) both; }
@keyframes tn2-hit { from { transform: translateY(105%); } to { transform: none; } }
/* the scene's phone keeps retrying once the URL stops answering */
.tn2-phone.down .tn2-bar i { animation: tn2-retry 1.6s var(--ease) infinite; }
@keyframes tn2-retry { 0%, 100% { transform: scale(1); } 50% { transform: scale(.4); } }
/* fact 04: the gate */
.tn2-gate { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 18px 22px; border-radius: 20px; background: #0a0a0a; color: #f5f5f5; }
.tn2-gate-k { margin: 0; font-size: 16px; }
.tn2-gate-k span { color: #a3a3a3; user-select: none; }
.tn2-gate svg { flex: none; color: #f5f5f5; }
.tn2-gate-s { transform: translateY(-7px); transition: transform .5s var(--ease-emphasis, cubic-bezier(.16, 1, .3, 1)) .3s; }
.tn2-gate.shut .tn2-gate-s { transform: none; }
/* one command: the prompt is shown, never copied */
.tn2-ps-c { color: #737373; user-select: none; }
.tn2-out { color: #a3a3a3; transition: opacity .3s var(--ease); }
.tn2-out.wait { opacity: 0; }
.tn2-one-code .tn2-caret { width: .6em; height: 1.1em; }
.tn2-one-code .tn2-wait { display: block; margin-top: 6px; }
.tn2-one-code .tn2-wait.hold { visibility: hidden; }
@media (hover: hover) { .tn2-name input:hover:not(:focus) { border-color: light-dark(rgba(10, 10, 10, .4), var(--border-selected)); background: var(--x-raised); } }
/* the close: one solid at a time, so the band's ask is an outline here (the header carries the solid) */
.tn2-fin .x-btn.solid[data-cta='close'] { background: transparent; color: #fafafa; border-color: rgba(255, 255, 255, .4); }
@media (hover: hover) { .tn2-fin .x-btn.solid[data-cta='close']:hover { background: rgba(255, 255, 255, .1); border-color: #fafafa; } }
@media (max-width: 900px) {
.tn2-scene:not(.pin) .tn2-stage { align-self: stretch; width: 100%; }
.tn2-one .x-arrow, .tn2-fin .x-arrow { min-height: 44px; display: inline-flex; align-items: center; }
.tn2-term-pause { top: auto !important; bottom: 12px !important; right: 12px !important; }
.tn2-hits { min-width: 0; font-size: 14px; }
.tn2-gate-k { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .tn2-hit, .tn2-phone.down .tn2-bar i { animation: none; } .tn2-gate-s { transition: none; } }
/* the close plays the ending once */
.tn2-end-k { display: flex; justify-content: space-between; gap: 12px; }
.tn2-end-x { font-style: italic; color: light-dark(#525252, var(--muted-foreground)); opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.tn2-end.off .tn2-end-x { opacity: 1; transform: none; }
.tn2-end-u { transition: color .9s var(--ease); }
.tn2-end-u i { transition: transform .6s var(--ease), background .6s var(--ease); }
.tn2-end.off .tn2-end-u { color: light-dark(#525252, var(--muted-foreground)); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #525252; }
.tn2-end.off .tn2-end-u i { background: transparent; box-shadow: inset 0 0 0 2px #737373; transform: scale(.8); }
.tn2-end.off .tn2-end-u b { color: light-dark(#525252, var(--muted-foreground)); }
/* the page's pause discs answer the pointer: the disc fills and the glyph steps up */
.tn2 .l2-pause svg { transition: transform .15s var(--ease); }
@media (hover: hover) { .tn2 .l2-pause.dk:hover { background: #f5f5f5; color: #0a0a0a; } .tn2 .l2-pause:hover svg { transform: scale(1.15); } }
.tn2 .l2-pause:active { transform: scale(.97); }
/* round 2 (7 Nov): carets blink four times and rest; the paused scene stops the retry dot */
.tn2-caret { animation-iteration-count: 4; }
.tn2-scene-pin.still .tn2-phone.down .tn2-bar i { animation-play-state: paused; }
/* the builder holds its height while it types and while its note swaps (two lines reserved at 375) */
.tn2-name-url { min-height: 2.4em; }
.tn2-name-note { min-height: 3em; }
/* one command: the output lines and the waiting caret keep their boxes from the first frame */
.tn2-one-code pre { min-height: 5.2em; }
.tn2-one-code .cf-ln { min-height: 1.65em; }
/* the close card: the command stays on one line; "terminal closed" follows it */
.tn2-end-k { justify-content: flex-start; flex-wrap: wrap; column-gap: 16px; }
.tn2-end-k > span:first-child { white-space: nowrap; }
.tn2-end-c { white-space: nowrap; }
/* facts: the sticky head carries the fact being read */
.tn2-facts-l { grid-column: 1 / span 6; align-self: start; position: sticky; top: 120px; }
.tn2-facts-l .tn2-facts-h { position: static; }
.tn2-facts-at { display: block; overflow: hidden; margin: 32px 0 0; font: 220 64px/1 var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.tn2-facts-at > span { display: inline-block; animation: tn2-at .5s var(--ease-emphasis, cubic-bezier(.16, 1, .3, 1)) both; }
.tn2-facts-at small { font-size: 26px; color: light-dark(#737373, var(--text-tertiary)); letter-spacing: 0; }
@keyframes tn2-at { from { transform: translateY(105%); } to { transform: none; } }
@media (max-width: 900px) {
.tn2-tw { font-size: 14px; }
.tn2-name-url { font-size: 21px; }
.tn2-name-d { display: block; } /* the domain keeps its own line, so typing the name never moves it */
.tn2-facts-l { grid-column: auto; position: relative; top: auto; }
.tn2-facts-at { display: none; }
.tn2-end-x { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .tn2-facts-at > span { animation: none; } }
/* round 3 (7 Nov): the dark room follows the hero's terminal band with a hairline breath, entering as a rounded room,
instead of a dead white strip */
.tn2-scene { margin-top: 6.5px; border-radius: 24px 24px 0 0; }
.tn2-scene:not(.pin) { overflow: hidden; }
/* phones: the shared header keeps its solid "Try Hanzo" below 900px and never hands over (requested), so the page's
own "View Source" is outlined there: one solid per screen */
@media (max-width: 900px) {
.tn2 .x-btn.solid[data-cta='tunnel.hero'] { background: transparent; color: var(--ink); border-color: light-dark(rgba(10, 10, 10, .3), var(--border-selected)); }
/* the hero's share line keeps "→ sharing 3000" and the arriving request on their own reserved rows */
.tn2-share { display: grid; gap: 4px; }
.tn2-hits { display: block; height: 1.5em; }
}
@media (max-width: 900px) and (hover: hover) { .tn2 .x-btn.solid[data-cta='tunnel.hero']:hover { background: light-dark(rgba(10, 10, 10, .06), var(--glass)); border-color: var(--ink); } }
/* the modes' description holds two lines at 375, so the auto-step never moves "One command" */
.tn2-modes p { min-height: 2.9em; line-height: 1.45; }
/* the builder: the domain always has its own line; the note's two sentences each keep theirs */
.tn2-name-d { display: block; }
.tn2-name-note > span { display: block; }
.tn2-name-note { min-height: 3em; }
/* flags and the output arrow never break inside */
/* one command: block lines, the typed text's caret is its ::after */
.tn2-one-code .tn2-ln { display: block; }
.tn2-typed.on::after { content: ''; display: inline-block; width: .6em; height: 1.1em; margin-left: 4px; vertical-align: -.15em; background: #f5f5f5; animation: tn2-blink 1s steps(1) 4; }
@media (max-width: 900px) { .tn2-one-code pre { font-size: 13.5px; } }
/* the phone's address fades into its edge instead of cutting off */
.tn2-bar { -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
/* fact 03: the first share prints its URL */
.tn2-print { margin-top: 24px; padding: 18px 22px; border-radius: 20px; background: #0a0a0a; color: #d4d4d4; }
.tn2-print p { margin: 0; font-size: 16px; }
.tn2-print span { color: #a3a3a3; user-select: none; }
.tn2-print-u { margin-top: 8px !important; color: #f5f5f5; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; overflow-wrap: anywhere; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .6s var(--ease-emphasis, cubic-bezier(.16, 1, .3, 1)) .2s; }
.tn2-print.on .tn2-print-u, html:not(.js) .tn2-print-u { opacity: 1; transform: none; }
@media (max-width: 900px) { .tn2-print p { font-size: 14px; } }
/* Copy in the terminal answers the pointer */
@media (hover: hover) { .tn2-one .x-copy:hover { background: rgba(255, 255, 255, .14); color: #fafafa; } }
@media (prefers-reduced-motion: reduce) { .tn2-typed.on::after { animation: none; } .tn2-print-u { transition: none; } }
/* ---------- motion map (7 Nov): the peel signature and five entrances, one per section ---------- */
/* signature: peel the layers */
.tp { position: relative; overflow: hidden; padding: clamp(44px, 7svh, 72px) 0; }
.tp-in { position: relative; }
.tp-stage { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; min-height: min(640px, 78svh); cursor: ns-resize; touch-action: pan-y; user-select: none; }
.tp-scene { position: relative; height: min(600px, 72svh); perspective: 1600px; perspective-origin: 50% 40%; transform-style: preserve-3d; }
.tp-plate { position: absolute; left: 50%; top: 52%; width: min(440px, 80%); aspect-ratio: 16 / 10; border-radius: 24px; transform-style: preserve-3d; will-change: transform; display: grid; place-items: center; }
.tp-laptop { background: #171717; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.tp-net { background: light-dark(rgba(245, 245, 245, .55), var(--surface-card)); border: 1.5px dashed light-dark(#a3a3a3, var(--border-selected)); }
.tp-fabric { background: light-dark(#e4e4e7, var(--secondary)); border: 1px solid light-dark(rgba(10, 10, 10, .12), var(--border)); overflow: hidden; }
.tp-url { background: var(--x-raised); border: 1px solid light-dark(rgba(10, 10, 10, .14), var(--border-control)); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25); }
.tp-term { margin: 0; font-size: 22px; color: #f5f5f5; }
.tp-term span { color: #a3a3a3; }
.tp-pk { position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; background: light-dark(rgba(10, 10, 10, .25), var(--border-selected)); }
.tp-pk i { position: absolute; left: 0; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); animation: tp-pk 2.4s linear infinite; }
.tp-pk i:nth-child(2) { animation-delay: -.8s; } .tp-pk i:nth-child(3) { animation-delay: -1.6s; }
@keyframes tp-pk { from { transform: translateX(0); } to { transform: translateX(min(340px, 60vw)); } }
.tp-lock { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 8px light-dark(rgba(10, 10, 10, .08), var(--glass-strong)); animation: tp-lock 2.4s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes tp-lock { 50% { box-shadow: 0 0 0 16px light-dark(rgba(10, 10, 10, .03), var(--glass)); } }
.tp-labels { position: relative; height: min(600px, 72svh); }
.tp-label { position: absolute; left: 0; right: 0; top: 50%; margin: 0; display: grid; gap: 4px; padding-left: 20px; border-left: 1px solid light-dark(rgba(10, 10, 10, .2), var(--border-focus)); will-change: transform; }
.tp-label:nth-child(1) { margin-top: 90px; } .tp-label:nth-child(2) { margin-top: 30px; } .tp-label:nth-child(3) { margin-top: -30px; } .tp-label:nth-child(4) { margin-top: -90px; }
.tp-label b { font-size: 21px; font-weight: 497; letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
.tp-label span { font-size: 14px; color: light-dark(#525252, var(--muted-foreground)); }
.tp-stage.tap { cursor: pointer; }
.tp-stage:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 24px; }
/* reduced motion: the opened stack, flat, each layer named beside it */
.tp.flat .tp-plate { position: relative; left: auto; top: auto; transform: none !important; width: 100%; aspect-ratio: auto; min-height: 72px; margin-bottom: 12px; }
.tp.flat .tp-scene { height: auto; perspective: none; display: flex; flex-direction: column-reverse; }
.tp.flat .tp-labels { height: auto; display: flex; flex-direction: column-reverse; }
.tp.flat .tp-label { position: relative; top: auto; margin: 0 0 12px !important; min-height: 72px; transform: none !important; opacity: 1 !important; align-content: center; }
@media (max-width: 900px) {
.tp-stage { grid-template-columns: 1fr; min-height: 0; }
.tp-scene { height: 360px; }
.tp-plate { width: 72%; border-radius: 18px; }
.tp-term { font-size: 13px; }
.tp-labels { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin-top: 8px; }
.tp-label:nth-child(4) { order: 1; } .tp-label:nth-child(3) { order: 2; } .tp-label:nth-child(2) { order: 3; } .tp-label:nth-child(1) { order: 4; } /* top layer first, as drawn */
.tp-label { position: relative; top: auto; margin: 0 !important; transform: none !important; padding-left: 14px; }
.tp-label b { font-size: 17px; }
.tp.flat .tp-labels { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .tp-pk i, .tp-lock { animation: none; } }
/* entrance 1, the peel: noise-dissolve. A field of white cells with a grain mask, each fading out at its own scattered
moment, so the stack appears through noise. */
.tp-noise { display: none; }
@media (prefers-reduced-motion: no-preference) {
html.js .tp-noise { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(8, 1fr); pointer-events: none; }
html.js .tp-noise i { background: var(--bg); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 -2.2'/%3E%3C/filter%3E%3Crect width='64' height='64' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(#000, #000); -webkit-mask-composite: source-over; mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 -2.2'/%3E%3C/filter%3E%3Crect width='64' height='64' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(#000, #000); mask-composite: add; opacity: 1; }
html.js .tp[data-in] .tp-noise i { opacity: 0; transition: opacity .42s steps(4) var(--d); }
}
/* entrance 2, one command: explode-gather. The heading, the text, the asks and the terminal start thrown apart and
collapse into place. */
@media (prefers-reduced-motion: no-preference) {
html.js .tn2-one:not([data-in]) .tn2-frag { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(.86); }
html.js .tn2-one .tn2-frag { transition: opacity .5s cubic-bezier(0, 0, .2, 1) var(--fd), transform .9s cubic-bezier(.16, 1, .3, 1) var(--fd); }
}
/* entrance 3, the facts: count-roll. Each fact's number rolls down its digits into place, one fact after another. */
.tn2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tn2-roll { display: inline-flex; }
.tn2-roll-d { display: inline-block; height: 1.25em; overflow: hidden; vertical-align: bottom; }
.tn2-roll-s { display: block; transform: translateY(calc(var(--n) * -1.25em)); }
.tn2-roll-s i { display: block; height: 1.25em; line-height: 1.25em; font-style: normal; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
html.js .tn2-facts:not([data-in]) .tn2-roll-s { transform: translateY(-11.25em); }
html.js .tn2-facts .tn2-roll-s { transition: transform 1.1s cubic-bezier(.16, 1, .3, 1) calc(var(--li, 1) * 110ms + var(--k) * 90ms); }
html.js .tn2-facts:not([data-in]) .tn2-list > li { opacity: .25; }
html.js .tn2-facts .tn2-list > li { transition: opacity .6s cubic-bezier(0, 0, .2, 1) calc(var(--li, 1) * 110ms); }
}
/* entrance 4, the dark room: spiral-in. The stage and the two facts arrive on a spiral, from the edge into place. */
@keyframes tn2-spiral {
0% { opacity: 0; transform: rotate(-200deg) translateX(46vw) rotate(200deg) scale(.55); }
35% { opacity: 1; transform: rotate(-130deg) translateX(26vw) rotate(130deg) scale(.72); }
70% { transform: rotate(-60deg) translateX(9vw) rotate(60deg) scale(.9); }
100% { opacity: 1; transform: none; }
}
@keyframes tn2-spiral-r {
0% { opacity: 0; transform: rotate(160deg) translateX(-40vw) rotate(-160deg) scale(.6); }
45% { opacity: 1; transform: rotate(90deg) translateX(-18vw) rotate(-90deg) scale(.8); }
100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
html.js .tn2-scene:not([data-in]) .tn2-stage, html.js .tn2-scene:not([data-in]) .tn2-cap { opacity: 0; }
html.js .tn2-scene[data-in] .tn2-stage { animation: tn2-spiral 1.3s cubic-bezier(.16, 1, .3, 1) both; }
html.js .tn2-scene[data-in] .tn2-cap { animation: tn2-spiral-r 1.1s cubic-bezier(.16, 1, .3, 1) .15s both; }
}
/* phones: the caption box is display: contents there, so each fact spirals in on its own */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
html.js .tn2-scene:not([data-in]) .tn2-cap-i { opacity: 0; }
html.js .tn2-scene[data-in] .tn2-cap-i { animation: tn2-spiral-r 1.1s cubic-bezier(.16, 1, .3, 1) .1s both; }
html.js .tn2-scene[data-in] .tn2-cap-i:last-child { animation-delay: .3s; }
}
/* entrance 5, the close: glitch-in. Monochrome slices jump for 280 ms, then it holds still. */
@keyframes tn2-glitch {
0% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateX(0); }
14% { opacity: 1; clip-path: inset(12% 0 64% 0); transform: translateX(-18px); }
28% { clip-path: inset(58% 0 20% 0); transform: translateX(14px); }
42% { clip-path: inset(30% 0 40% 0); transform: translateX(-8px); }
57% { clip-path: inset(0 0 72% 0); transform: translateX(6px); }
71% { clip-path: inset(70% 0 0 0); transform: translateX(-4px); }
86% { clip-path: inset(0 0 8% 0); transform: translateX(2px); }
100% { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
html.js .tn2-gl:not([data-in]) { opacity: 0; }
html.js .tn2-gl[data-in] { animation: tn2-glitch .28s steps(1, end) both; }
}
/* ---- run 4 (D2): "One command" lands by line mask (no third typewriter); tighter room ---- */
.tn2-one.l2-sec { padding-block: clamp(72px, 8vw, 112px); }
.tn2-one-code .cf-ln, .tn2-one-code .tn2-caret { transition: clip-path .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1); }
.tn2-one-code .cf-ln:nth-child(2) { transition-delay: .18s; }
.tn2-one-code .cf-ln:nth-child(3) { transition-delay: .36s; }
.tn2-one-code .tn2-caret { transition-delay: .54s; }
.js .tn2-one:not([data-in]) .tn2-one-code .cf-ln, .js .tn2-one:not([data-in]) .tn2-one-code .tn2-caret { clip-path: inset(0 0 100% 0); transform: translateY(10px); }
@media (prefers-reduced-motion: reduce) { .js .tn2-one:not([data-in]) .tn2-one-code .cf-ln, .js .tn2-one:not([data-in]) .tn2-one-code .tn2-caret { clip-path: none; transform: none; } }
/* the terminal's Copy answers the hover (fill and ring), and the press */
.tn2-one .cf-code-bar button { transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform var(--dur-press, .1s) var(--ease); }
@media (hover: hover) { .tn2-one .cf-code-bar button:hover { background: #262626; border-color: rgba(255, 255, 255, .32); color: #fafafa; } }
.tn2-one .cf-code-bar button:active { transform: scale(.96); }
/* Hanzo's Iro art (live: the black card behind the facts), kept under the counter (COPY-RULE.md rule 5) */
.tn2-art { margin-top: 32px; }
.tn2-nb { white-space: nowrap; }
/* dark (docs/DARK-MODE.md): the shared l2 frame takes Hanzo's dark on this page; light-dark() keeps bright exactly as it was */
.tn2.l2-page { background: var(--bg); --hair: light-dark(rgba(0, 0, 0, .1), var(--border)); --muted: light-dark(#525252, var(--muted-foreground)); --soft: light-dark(#525252, var(--muted-foreground)); }
html:not(.light) .tn2 .l2-pause:not(.dk) { background: var(--surface-overlay); }
/* dark only: Hanzo's hero texture as measured on live hanzo.ai dark (7px dot grid, dots ~36% foreground, densest at the
side edges and toward the bottom, plus live's top glow); the pinned stage keeps its own sticky position */
html:not(.light) .tn2 .tn2-hero { position: relative; isolation: isolate; }
html:not(.light) .tn2 .tn2-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
background: radial-gradient(circle, color-mix(in srgb, var(--foreground) 36%, transparent) 1.5px, transparent 2.1px) 0 0 / 7px 7px;
-webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .15) 32%, rgba(0, 0, 0, .15) 64%, #000), linear-gradient(180deg, rgba(0, 0, 0, .25), #000 85%);
-webkit-mask-composite: source-in;
mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .15) 32%, rgba(0, 0, 0, .15) 64%, #000), linear-gradient(180deg, rgba(0, 0, 0, .25), #000 85%);
mask-composite: intersect; }
html:not(.light) .tn2 .tn2-hero::after { content: ''; position: absolute; inset: 0 0 auto; height: 640px; z-index: -1; pointer-events: none;
background: radial-gradient(60% 70% at 50% 0%, color-mix(in srgb, var(--foreground) 9%, transparent), transparent 70%); }