Files

213 lines
18 KiB
CSS

/* /contact (prefix xct-). Hanzo's deck only (MASTER.md 3.1): the neutral ramp, Book 497 headings, 48px buttons, deck
durations and curves (no springs), flat surfaces (a fill or a hairline, never both with a shadow).
Tokens come from components/pages/company/deck.css on .vc. */
.xct { overflow-x: clip; }
.xct ::selection { background: rgba(0, 0, 0, .1); }
.xct :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px #fff; }
.xct-big { height: 48px; padding: 0 27px; font-size: 16px; }
/* the hero's buttons only (the closing Band keeps the kit's own hover) */
.xct-route .x-btn { transition: background-color var(--d-fast) var(--e-out), border-color var(--d-fast) var(--e-out); }
@media (hover: hover) { .xct-route .x-btn.solid:hover { background: #262626; border-color: #262626; } }
.xct-go { display: inline-flex; }
/* the kit Go adds a focusable wrapper around its link: give that stop the pill's own round ring; on black, a light ring */
.xct .x-go:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 999px; box-shadow: 0 0 0 5px #fff; }
.xct .x-band :focus-visible { outline: 2px solid #fafafa; outline-offset: 3px; border-radius: 999px; box-shadow: 0 0 0 5px #000; }
/* the five section entrances live in ./contact/enter.css (tile-flip on the panel, then focus-pull, tilt, spring, ticker) */
/* resting type follows live hanzo.ai (JAMES rule 1): h1 52px, section headings 26px; the cable, the clock and the
row you are on are the moments that grow */
.xct .xct-hero .vc-display { font-size: clamp(40px, 11vw, 52px); line-height: 1.04; }
.xct .xct-visit .vc-headline, .xct .xct-com .vc-headline { font-size: 26px; line-height: 1.15; letter-spacing: -.025em; }
/* 1. the question beside the patch panel */
/* the h1 sits high (its baseline near 38% of the screen) and the next room peeks below the hero */
.xct-hero { padding: clamp(44px, 6vw, 72px) 0 44px; }
.xct-hero-g { align-items: start; row-gap: 44px; }
.xct-hero-c { padding-top: 27px; }
.xct-hero-c { grid-column: 1 / 7; display: flex; flex-direction: column; gap: 27px; }
.xct-hero-o { grid-column: 7 / 13; position: relative; }
.xct-obj { position: relative; display: flex; flex-direction: column; }
.xct-jacks { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6.5px; }
.xct-jack { position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 17px; min-height: 120px; padding: 17px 13px 13px; border: 1.5px solid transparent; border-radius: 16px; background: var(--quiet); color: var(--ink2); text-align: left; cursor: pointer; transition: border-color var(--d-fast) var(--e-out), color var(--d-fast) var(--e-out), transform var(--d-press) var(--e-out); }
.xct-jack:active { transform: scale(.97); }
.xct-jack.on { color: var(--ink); border-color: var(--ink); background: #fff; }
.xct-hole { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, .18); background: #fff; transition: border-color var(--d-fast) var(--e-out); }
.xct-hole i { width: 8px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, .22); transition: background var(--d-fast) var(--e-out), transform var(--d-base) var(--e-io); }
.xct-jack.on .xct-hole, .xct-jack.lit .xct-hole { border-color: var(--ink); }
.xct-jack.lit .xct-hole i, .xct-jack.on .xct-hole i { background: var(--ink); transform: scale(1.35); }
/* the jack's name and its action share one slot: pointing swaps the name for what the line does (Hanzo's own button
words), so two-line names never collide with it */
.xct-jt { display: grid; width: 100%; overflow: hidden; padding-bottom: 2px; }
.xct-k, .xct-peek { grid-area: 1 / 1; align-self: end; transition: transform var(--d-base) var(--e-io), opacity var(--d-fast) var(--e-out); }
.xct-k { font: 606 17px/1.2 var(--sans); letter-spacing: -.01em; }
.xct-peek { font: 400 16px/1.25 var(--sans); color: var(--ink); opacity: 0; transform: translateY(100%); overflow-wrap: normal; word-break: normal; }
@media (hover: hover) {
.xct-jack:hover { color: var(--ink); border-color: rgba(0, 0, 0, .3); }
.xct-jack:hover .xct-hole { border-color: var(--ink); }
}
/* the action prints only where it fits whole ("[email protected]" needs 110px; the slot is 125px+ from 1400px). Below
that, hover answers with the outline, the socket and the wire leaning toward the jack. */
@media (hover: hover) and (min-width: 1400px) {
.xct-jack:hover .xct-k { opacity: 0; transform: translateY(-100%); }
.xct-jack:hover .xct-peek { opacity: 1; transform: none; }
}
@media (max-width: 1399px) { .xct-peek { display: none; } }
.xct-cable { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; overflow: visible; }
.xct-wire { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.xct-nub { fill: var(--ink); }
.xct-panel { position: relative; margin-top: 88px; display: grid; padding: 44px 27px 27px; border-radius: 24px; background: var(--card); min-height: 320px; }
.xct-plug { position: absolute; left: 50%; top: -8px; width: 18px; height: 24px; margin-left: -9px; border-radius: 6px; background: var(--ink); box-shadow: 0 0 0 4px var(--card); transition: opacity var(--d-fast) var(--e-out); }
/* the plug shows only once its wire is drawn */
.xct-obj:not([data-wired]) .xct-plug { opacity: 0; }
/* one question at a time: two screens share one cell and slide sideways (500ms ease-emphasis); the panel keeps the
height of the taller one, so nothing below moves */
.xct-track { display: grid; overflow: hidden; margin: -6px; padding: 6px; }
.xct-scr { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; transition: transform var(--d-slower) var(--e-em), opacity var(--d-base) var(--e-out); }
.xct-panel[data-step="0"] .xct-a { transform: translateX(calc(100% + 48px)); opacity: 0; }
.xct-panel[data-step="1"] .xct-q { transform: translateX(calc(-100% - 48px)); opacity: 0; }
.xct .xct-qp { margin: 0; max-width: 26ch; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.3; color: var(--ink); }
.xct-qf { display: flex; align-items: center; justify-content: space-between; margin-top: auto; color: var(--ink); }
.xct-qf svg { animation: xct-nudge 1.6s var(--e-io) infinite; }
@keyframes xct-nudge { 50% { transform: translateY(-5px); } }
.xct-dots { display: inline-flex; gap: 6px; }
.xct-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(0, 0, 0, .2); transition: width var(--d-base) var(--e-em), background var(--d-fast) var(--e-out); }
.xct-dots i.on { width: 20px; border-radius: 3px; background: var(--ink); }
/* the answer, summarised: back, the chosen line as a chip, progress */
.xct-sum { display: flex; align-items: center; gap: 10px; }
.xct-sum .xct-dots { margin-left: auto; }
.xct-back { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .14); background: #fff; color: var(--ink); cursor: pointer; transition: border-color var(--d-fast) var(--e-out), transform var(--d-press) var(--e-out); }
.xct-back:active { transform: scale(.97); }
@media (hover: hover) { .xct-back:hover { border-color: rgba(0, 0, 0, .4); } .xct-back:hover svg { transform: translateX(-2px); } }
.xct-back svg { transition: transform var(--d-base) var(--e-em); }
.xct-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 10px; border-radius: 999px; background: #fff; font: 606 15px/1 var(--sans); color: var(--ink); }
.xct-chip > i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.xct-chip-w { display: block; overflow: hidden; padding: 2px 0; }
.xct-chip-t { display: block; }
.xct-routes { display: grid; }
.xct-route { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 17px; align-self: start; }
.xct-cpw { position: relative; display: inline-flex; align-items: center; }
/* "Copied" slides out beside the button (absolute, so nothing reflows) and stays readable on a phone tap */
.xct-cpt { position: absolute; left: calc(100% + 10px); top: 50%; white-space: nowrap; font: 500 15px/1 var(--sans); color: var(--ink); opacity: 0; transform: translate(-6px, -50%); transition: opacity var(--d-fast) var(--e-out), transform var(--d-slow) var(--e-em); pointer-events: none; }
.xct-cpt.on { opacity: 1; transform: translate(0, -50%); }
.xct-cp.ok { border-color: var(--ink); }
.xct-cp { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .14); background: #fff; color: var(--ink); cursor: pointer; transition: border-color var(--d-fast) var(--e-out), transform var(--d-press) var(--e-out); }
.xct-cp:active { transform: scale(.97); }
@media (hover: hover) { .xct-cp:hover { border-color: rgba(0, 0, 0, .4); } }
.xct-rh { margin: 4px 0 0; font-size: 26px; font-weight: 497; line-height: 1.1; letter-spacing: -.025em; max-width: 16ch; text-wrap: balance; color: var(--ink); }
.xct-rp { margin: 0; max-width: 44ch; font-size: 17px; line-height: 1.55; color: var(--ink2); text-wrap: pretty; }
.xct-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10.5px 17px; margin-top: 10px; }
.xct-more { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.xct-more .x-arrow { min-height: 44px; }
/* 2. the dark middle room: the address beside a big live San Francisco clock */
.xct-visit { position: relative; background: #000; color: #fafafa; padding: clamp(72px, 11vw, 188px) 0; }
.xct-visit-g { align-items: center; row-gap: 44px; }
.xct-visit-c { grid-column: 1 / 7; display: flex; flex-direction: column; gap: 27px; }
/* one big thing in this room: the clock. "Visit" rests at the section-heading size (26px), the address sits under
it as a medium line (21px), the city small and grey */
.xct-visit-c { gap: 13px; }
.xct-visit-c .vc-headline, .xct .xct-addr { color: #fafafa; }
.xct .xct-addr { margin: 4px 0 0; font-size: 21px; font-weight: 400; line-height: 1.3; letter-spacing: -.01em; max-width: 20ch; }
.xct .xct-city { margin: 0; font-size: 17px; color: #a3a3a3; }
.xct-clock { grid-column: 7 / 13; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 27px; }
.xct-dial { width: min(100%, 440px); height: auto; }
.xct-face { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .2); stroke-width: .8; }
.xct-tk { stroke: rgba(255, 255, 255, .3); stroke-width: .8; }
.xct-tk.big { stroke: #fafafa; stroke-width: 2.2; }
.xct-h { stroke: #fafafa; stroke-linecap: round; transform-origin: 100px 100px; opacity: 0; transition: opacity var(--d-slower) var(--e-out); }
.xct-dial.live .xct-h { opacity: 1; }
.xct-h.hr { stroke-width: 6; }
.xct-h.mn { stroke-width: 3.5; }
.xct-h.sc { stroke: #a3a3a3; stroke-width: 1.4; }
.xct-pin { fill: #fafafa; }
.xct-clock-t { margin: 0; font-size: clamp(26px, 2.6vw, 32px); font-weight: 497; letter-spacing: -.025em; line-height: 1; color: #fafafa; }
/* 3. the community: names at section-heading size over their mono addresses; only the row you are on grows, then
settles back; the plate follows the row you reach or point at */
.xct-com { padding: clamp(72px, 11vw, 188px) 0; }
/* nothing pinned: the heading and plate sit beside the list and scroll with it */
.xct-com-l { grid-column: 1 / 6; align-self: start; display: flex; flex-direction: column; gap: 44px; }
.xct-plate-m { display: block; }
/* the contour one step darker on the ramp (#525252, was 50% black) so the plate reads at rest */
.xct-plate { position: relative; overflow: hidden; aspect-ratio: 5 / 4; border-radius: 24px; background: var(--quiet); color: var(--ink2); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform var(--d-base) var(--e-em); }
.xct-plate-s { position: absolute; inset: 0; }
/* the new contour covers the last one as it draws on; a hairline rides its leading edge */
.xct-plate-s.now { background: var(--quiet); }
.xct-plate-e { position: absolute; top: 0; bottom: 0; width: 1.5px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.xct-plate-s canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.xct-plate::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, rgba(245, 245, 245, 0), rgba(245, 245, 245, .95)); pointer-events: none; }
.xct-plate-w { position: absolute; left: 27px; right: 27px; bottom: 22px; z-index: 1; overflow: hidden; padding-bottom: .08em; }
.xct-plate-n { display: block; font-size: clamp(40px, 4.4vw, 52px); font-weight: 497; letter-spacing: -.035em; line-height: 1; color: var(--ink); }
.xct-nets { grid-column: 7 / 13; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.xct-net { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 84px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); text-decoration: none; transition: color var(--d-fast) var(--e-out); }
.xct-net-t { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.xct-net-n { display: block; font-size: 26px; font-weight: 497; letter-spacing: -.025em; line-height: 1.1; transform-origin: 0 100%; transition: transform var(--d-slow) var(--e-em); }
.xct-net-u { font: 400 13px/1.3 var(--mono); letter-spacing: 0; color: var(--muted); overflow-wrap: break-word; transition: color var(--d-fast) var(--e-out), transform var(--d-slow) var(--e-em); }
.xct-net svg { color: var(--muted); transition: color var(--d-fast) var(--e-out), transform var(--d-base) var(--e-io); }
.xct-net.on { color: var(--ink); }
.xct-net.on .xct-net-n { transform: translateY(-2px) scale(1.3); }
.xct-net.on .xct-net-u { color: var(--ink2); transform: translateX(2px); }
.xct-net.on svg { color: var(--ink); transform: translate(3px, -3px); }
.xct-net:active .xct-net-n { transform: translateY(-1px) scale(1.26); transition-duration: 90ms; }
@media (max-width: 899px) {
.xct-hero { padding: 64px 0 44px; }
.xct-hero-c { gap: 13px; padding-top: 10px; }
.xct-hero-g { row-gap: 20px; }
/* phones: the jacks are one swipe row with soft edges; the wire drops from the chosen pill into its route */
.xct-jacks { display: flex; gap: 6.5px; overflow-x: auto; margin: -2px -20px 0; padding: 2px 20px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 13px, #000 calc(100% - 27px), transparent); mask-image: linear-gradient(90deg, transparent, #000 13px, #000 calc(100% - 27px), transparent); }
.xct-jacks::-webkit-scrollbar { display: none; }
.xct-jack { flex: none; flex-direction: row; align-items: center; gap: 10px; min-height: 44px; padding: 0 17px 0 10px; border-radius: 999px; }
.xct-jt { padding-bottom: 0; }
.xct-hole { width: 24px; height: 24px; }
.xct-jt { width: auto; }
.xct-k { font-size: 16px; white-space: nowrap; }
.xct-peek { display: none; }
.xct-panel { margin-top: 30px; padding: 20px 20px 20px; min-height: 0; }
.xct-dial { width: min(100%, 300px); }
.xct-clock { justify-items: start; }
/* phones: the plate sits under the heading and scrolls away with it (nothing pinned under the glass header); it
keeps its draw-on as the first rows pass, without its name, which would repeat the row beneath it */
.xct-com-l { position: static; gap: 20px; margin-bottom: 20px; }
.xct-plate { aspect-ratio: 16 / 7; }
.xct-plate::after, .xct-plate-w { display: none; }
.xct-net { min-height: 72px; }
.xct-net-n { font-size: 24px; }
.xct-net-u { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
.xct-qf svg { animation: none; }
.xct-scr, .xct-plate { transition: none; }
.xct-net-n, .xct-net-u, .xct-cpt { transition-duration: 0s; }
.xct-h { transition: none; }
}
/* dark mode (docs/DARK-MODE.md): Hanzo's default; light is html.light, so every rule here sits under html:not(.light)
and bright mode is untouched. The deck tokens (shadowed on .vc) take Hanzo's dark tokens through our --x- aliases,
which resolve on <html>; the hard-coded whites and black alphas follow. The Visit room stays black. */
html:not(.light) .xct { --ink: var(--foreground); --ink2: var(--muted-foreground); --muted: var(--faint); --quiet: var(--x-fill); --card: var(--x-fill); --tile: var(--x-knob); --line: var(--x-e10); }
html:not(.light) .xct ::selection { background: var(--x-knob); }
html:not(.light) .xct :focus-visible, html:not(.light) .xct .x-go:focus-visible { box-shadow: 0 0 0 5px var(--bg); }
@media (hover: hover) { html:not(.light) .xct-route .x-btn.solid:hover { background: var(--foreground); border-color: var(--foreground); } }
html:not(.light) .xct-jack.on { background: var(--x-raised); }
html:not(.light) .xct-hole { border-color: var(--x-e15); background: var(--x-raised); }
html:not(.light) .xct-hole i { background: var(--x-knob); }
html:not(.light) .xct-jack.on .xct-hole, html:not(.light) .xct-jack.lit .xct-hole { border-color: var(--ink); }
html:not(.light) .xct-jack.lit .xct-hole i, html:not(.light) .xct-jack.on .xct-hole i { background: var(--ink); }
@media (hover: hover) {
html:not(.light) .xct-jack:hover { border-color: var(--x-e15); }
html:not(.light) .xct-jack:hover .xct-hole { border-color: var(--ink); }
html:not(.light) .xct-back:hover, html:not(.light) .xct-cp:hover { border-color: var(--ink2); }
}
html:not(.light) .xct-dots i { background: var(--x-knob); }
html:not(.light) .xct-dots i.on { background: var(--ink); }
html:not(.light) .xct-back, html:not(.light) .xct-cp { border-color: var(--x-e15); background: var(--x-raised); }
html:not(.light) .xct-cp.ok { border-color: var(--ink); }
html:not(.light) .xct-chip { background: var(--x-raised); }
html:not(.light) .xct-plate::after { background: linear-gradient(180deg, transparent, var(--x-fill)); }
html:not(.light) .xcte-tiles i { background: var(--bg); }
/* the shared Band's solid ask fills with --x-fill (#171717 in dark) under black type; on this page it keeps Hanzo's
primary in dark so it reads */
html:not(.light) .xct .x-band .x-btn.solid { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }