/* Peer2Peer landing page (/p2p/). Brand: the Peer2Peer palette and type (indigo, teal, amber on near-black;
 * Bricolage Grotesque and JetBrains Mono). Every animation here is CSS or SVG: the page runs under the strict
 * /p2p/ Content-Security-Policy (public/_headers), so there is no inline style or script, and nothing is loaded
 * from another origin. The invite and circle pages keep their own stylesheet, p2p.css. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-display: swap; src: url(/p2p/fonts/bricolage-500.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url(/p2p/fonts/bricolage-800.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(/p2p/fonts/jetbrains-500.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url(/p2p/fonts/jetbrains-700.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #070912; --pan: #0E1222; --fg: #F1F5F9; --mu: #8B93A7;
  --in: #6366F1; --inL: #818CF8; --te: #14B8A6; --teL: #2DD4BF; --am: #FBBF24; --re: #F43F5E;
  --line: rgba(241, 245, 249, .1);
  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--teL); text-underline-offset: 3px; }
a:hover { color: var(--fg); }
code { font-family: var(--mono); font-size: .88em; background: rgba(241, 245, 249, .07); border-radius: 6px; padding: 2px 7px; }
strong { font-weight: 800; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
[hidden] { display: none !important; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 32px;
  background: rgba(7, 9, 18, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-logo { display: inline-flex; align-items: center; gap: 4px; color: var(--fg); text-decoration: none; font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.nav-logo img { width: 32px; height: 32px; object-fit: contain; }
.nav-logo .sep { color: var(--mu); font-weight: 500; margin: 0 8px; }
.nav-logo .p2p { font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--teL); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-pill { color: var(--mu); text-decoration: none; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-pill:hover { color: var(--fg); background: rgba(241, 245, 249, .07); }
.nav-pill.gh { color: var(--fg); border: 1px solid var(--line); margin-left: 6px; }
.nav-pill.here { color: var(--teL); background: rgba(20, 184, 166, .1); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 24px 90px; overflow: hidden; isolation: isolate; }
.glow { position: absolute; z-index: -3; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(40px); opacity: .5; }
.glow.a { background: radial-gradient(circle, rgba(99, 102, 241, .42), transparent 62%); top: -28vmax; left: -18vmax; animation: drift 19s ease-in-out infinite alternate; }
.glow.b { background: radial-gradient(circle, rgba(20, 184, 166, .32), transparent 62%); bottom: -34vmax; right: -20vmax; animation: drift 23s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(9vmax, 6vmax) scale(1.12); } }
.net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.lk { fill: none; stroke: rgba(241, 245, 249, .2); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.nd { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .7s var(--ease) forwards, bob 7s ease-in-out infinite alternate; }
@keyframes pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes bob { from { translate: 0 -5px; } to { translate: 0 6px; } }
.core.i { fill: var(--inL); } .core.t { fill: var(--teL); }
.halo.i { fill: rgba(99, 102, 241, .16); } .halo.t { fill: rgba(20, 184, 166, .15); }
.halo { transform-box: fill-box; transform-origin: center; animation: breathe 3.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.35); opacity: .55; } }
.pk { opacity: .95; } .pk-t { fill: var(--fg); } .pk-a { fill: var(--am); }
.d0 { animation-delay: .15s, 0s; } .d1 { animation-delay: .35s, -1s; } .d2 { animation-delay: .55s, -2s; } .d3 { animation-delay: .75s, -3s; } .d4 { animation-delay: .95s, -4s; } .d5 { animation-delay: 1.15s, -5s; }
.veil { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 54% 46% at 50% 47%, rgba(7, 9, 18, .93), rgba(7, 9, 18, .62) 58%, rgba(7, 9, 18, 0) 82%), linear-gradient(to bottom, rgba(7, 9, 18, 0) 72%, var(--bg)); }
.floor { position: absolute; left: -50%; right: -50%; bottom: -6%; height: 44%; z-index: -2; transform: perspective(520px) rotateX(63deg); transform-origin: bottom;
  background: repeating-linear-gradient(to right, rgba(129, 140, 248, .2) 0 1px, transparent 1px 84px), repeating-linear-gradient(to bottom, rgba(45, 212, 191, .2) 0 1px, transparent 1px 84px);
  -webkit-mask-image: linear-gradient(to top, #000, transparent 88%); mask-image: linear-gradient(to top, #000, transparent 88%); animation: floor 3.2s linear infinite; }
@keyframes floor { to { background-position: 0 0, 0 84px; } }

.mark { display: block; width: clamp(150px, 19vw, 230px); height: auto; margin: 0 auto 18px; overflow: visible; opacity: 0; animation: rise .9s var(--ease) forwards; filter: drop-shadow(0 0 34px rgba(99, 102, 241, .45)); }
.mk-agent { opacity: .75; transform-box: fill-box; transform-origin: center; animation: breathe 3.2s ease-in-out infinite; }
.mk-agent.m2 { animation-delay: -.8s; } .mk-agent.m3 { animation-delay: -1.6s; } .mk-agent.m4 { animation-delay: -2.4s; }
.mk-pk { fill: var(--fg); }
h1 { font-size: clamp(60px, 11.5vw, 156px); line-height: .92; letter-spacing: -.045em; font-weight: 800; margin: 0 0 22px; }
h1 span { display: inline-block; opacity: 0; transform: translateY(.35em) scale(.9); animation: rise .9s var(--ease) forwards; }
h1 .w1 { animation-delay: .1s; }
h1 .w2 { background: linear-gradient(100deg, var(--inL), var(--teL) 60%, var(--am)); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .9s var(--ease) .24s forwards, sheen 7s ease-in-out 1.2s infinite alternate; }
h1 .w3 { animation-delay: .38s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes sheen { to { background-position: 100% 0; } }
.tagline { font-size: clamp(22px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px; opacity: 0; animation: rise .9s var(--ease) .55s forwards; }
.power { font-family: var(--mono); font-weight: 700; font-size: clamp(15px, 1.7vw, 21px); letter-spacing: .2em; text-transform: uppercase; color: var(--mu); margin: 0 0 26px; opacity: 0; animation: rise .9s var(--ease) .64s forwards; }
.power b { font-weight: 700; background: linear-gradient(100deg, var(--inL), var(--teL)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 640px; margin: 0 auto 32px; color: rgba(241, 245, 249, .7); font-size: clamp(16px, 1.35vw, 18px); opacity: 0; animation: rise .9s var(--ease) .76s forwards; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: rise .9s var(--ease) .85s forwards; }
.btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-family: var(--mono); font-weight: 700; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.btn.primary { color: #070912; background: linear-gradient(100deg, var(--inL), var(--teL)); box-shadow: 0 10px 40px -10px rgba(45, 212, 191, .6); }
.btn.primary:hover { transform: translateY(-2px) scale(1.03); color: #070912; box-shadow: 0 16px 50px -10px rgba(45, 212, 191, .8); }
.btn.ghost { color: var(--fg); border: 1px solid rgba(241, 245, 249, .22); background: rgba(14, 18, 34, .6); }
.btn.ghost:hover { border-color: var(--inL); transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, .copy:focus-visible { outline: 2px solid var(--teL); outline-offset: 3px; }
.scroll { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(241, 245, 249, .3); border-radius: 14px; }
.scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--teL); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { to { transform: translateY(14px); opacity: 0; } }

/* ---------- sections ---------- */
section { padding: 110px 0; position: relative; }
.kicker { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--inL); margin: 0 0 14px; }
h2 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 0 0 22px; }
h2 em { font-style: normal; color: var(--teL); } h2 em.am { color: var(--am); } h2 em.in { color: var(--inL); }
.sub { max-width: 720px; color: rgba(241, 245, 249, .76); margin: 0 0 44px; }
.muted { color: var(--mu); font-size: 15px; }
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="1"] { transition-delay: .12s; } .js [data-reveal="2"] { transition-delay: .24s; } .js [data-reveal="3"] { transition-delay: .36s; }

/* ---------- the demo ---------- */
.demo { display: grid; grid-template-columns: 1fr 230px 1fr; align-items: stretch; margin-top: 10px; }
.term { background: linear-gradient(180deg, #0B0F1E, #05070D); border: 1px solid var(--line); border-radius: 20px; min-height: 330px; box-shadow: 0 30px 90px -30px rgba(99, 102, 241, .5); overflow: hidden; }
.term.bob { box-shadow: 0 30px 90px -30px rgba(20, 184, 166, .5); }
.term header { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--mu); }
.term header b { width: 11px; height: 11px; border-radius: 50%; background: var(--re); } .term header b + b { background: var(--am); } .term header b + b + b { background: #34D399; }
.term header span { margin-left: 8px; }
.term header .on { margin-left: auto; color: var(--teL); }
.term .body { padding: 18px 18px 22px; font-family: var(--mono); font-size: 14.5px; line-height: 1.55; display: grid; gap: 12px; }
.term .body > * { opacity: 0; margin: 0; }
.who { color: var(--inL); font-weight: 700; } .bob .who { color: var(--teL); }
.dim { color: var(--mu); }
.msg { border: 1px solid rgba(129, 140, 248, .5); background: rgba(99, 102, 241, .12); border-radius: 12px; padding: 10px 12px; }
.warn { border: 1px solid rgba(251, 191, 36, .6); background: rgba(251, 191, 36, .1); color: var(--am); border-radius: 12px; padding: 10px 12px; font-weight: 700; }
.warn small { display: block; color: var(--fg); font-weight: 500; font-size: 13.5px; }
.ok { color: #34D399; }
.wire { position: relative; display: grid; place-items: center; }
.wire::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: repeating-linear-gradient(to right, rgba(241, 245, 249, .3) 0 8px, transparent 8px 16px); }
.relay { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--mu); }
.relay-dot { width: 64px; height: 64px; border-radius: 20px; background: var(--pan); border: 2px solid var(--teL); display: grid; place-items: center; }
.relay-dot svg { width: 30px; height: 30px; stroke: var(--teL); fill: none; stroke-width: 2; stroke-linecap: round; }
.relay strong { color: var(--fg); font-size: 13px; }
.track { position: absolute; left: 0; right: 0; top: calc(50% - 86px); height: 0; }
.packet { position: absolute; top: 0; opacity: 0; transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: #05070D; }
.packet.p1 { color: var(--inL); border: 1px solid var(--inL); box-shadow: 0 0 24px rgba(99, 102, 241, .6); }
.packet.p2 { color: var(--teL); border: 1px solid var(--teL); box-shadow: 0 0 24px rgba(20, 184, 166, .6); top: 172px; }
@keyframes a1 { 0%, 4% { opacity: 0; transform: translateY(10px); } 7%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
.demo .a1 { animation: a1 14s cubic-bezier(.2, .8, .2, 1) infinite; }
@keyframes a2 { 0%, 12% { opacity: 0; transform: translateY(10px); } 15%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
.demo .a2 { animation: a2 14s cubic-bezier(.2, .8, .2, 1) infinite; }
@keyframes b1 { 0%, 31% { opacity: 0; transform: translateY(10px); } 34%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
.demo .b1 { animation: b1 14s cubic-bezier(.2, .8, .2, 1) infinite; }
@keyframes b2 { 0%, 39% { opacity: 0; transform: translateY(10px); } 42%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
.demo .b2 { animation: b2 14s cubic-bezier(.2, .8, .2, 1) infinite; }
@keyframes b3 { 0%, 50% { opacity: 0; transform: translateY(10px); } 53%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
.demo .b3 { animation: b3 14s cubic-bezier(.2, .8, .2, 1) infinite; }
@keyframes a3 { 0%, 70% { opacity: 0; transform: translateY(10px); } 73%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
.demo .a3 { animation: a3 14s cubic-bezier(.2, .8, .2, 1) infinite; }
@keyframes a4 { 0%, 77% { opacity: 0; transform: translateY(10px); } 80%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: none; } }
.demo .a4 { animation: a4 14s cubic-bezier(.2, .8, .2, 1) infinite; }
@keyframes p1 { 0%, 16% { left: 0%; opacity: 0; } 17.5% { opacity: 1; } 27% { left: 100%; opacity: 1; } 29%, 100% { left: 100%; opacity: 0; } }
.demo .p1 { animation: p1 14s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes p2 { 0%, 56% { left: 100%; opacity: 0; } 57.5% { opacity: 1; } 67% { left: 0%; opacity: 1; } 69%, 100% { left: 0%; opacity: 0; } }
.demo .p2 { animation: p2 14s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes relayhit { 0%, 20% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); } 22% { box-shadow: 0 0 0 14px rgba(45, 212, 191, .22); } 28%, 60% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); } 62% { box-shadow: 0 0 0 14px rgba(129, 140, 248, .25); } 68%, 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); } }
.demo .relay-dot { animation: relayhit 14s linear infinite; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.card { position: relative; background: linear-gradient(180deg, rgba(14, 18, 34, .95), rgba(14, 18, 34, .6)); border: 1px solid var(--line); border-radius: 24px; padding: 30px 28px 28px; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: radial-gradient(420px circle at 20% 0%, rgba(99, 102, 241, .22), transparent 60%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.card:hover { border-color: rgba(129, 140, 248, .55); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 27px; letter-spacing: -.02em; font-weight: 800; margin: 20px 0 10px; line-height: 1.1; }
.card p { margin: 0; color: rgba(241, 245, 249, .76); font-size: 17px; }
.ico { width: 76px; height: 76px; }
.ico * { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ico .s-in { stroke: var(--inL); } .ico .s-te { stroke: var(--teL); } .ico .s-am { stroke: var(--am); }
.ico .f-te { fill: var(--teL); stroke: none; } .ico .f-am { fill: var(--am); stroke: none; }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.shackle { animation: lock 4s var(--ease) infinite; }
@keyframes lock { 0%, 18% { transform: translateY(-7px); } 30%, 88% { transform: none; } 100% { transform: translateY(-7px); } }
.wave { opacity: 0; animation: wave 2.4s ease-out infinite; } .wave.w2 { animation-delay: .5s; } .wave.w3 { animation-delay: 1s; }
@keyframes wave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.turn { transform-box: fill-box; transform-origin: 18% 50%; animation: turn 4.5s var(--ease) infinite; }
@keyframes turn { 0%, 20% { transform: rotate(0); } 40%, 70% { transform: rotate(-90deg); } 90%, 100% { transform: rotate(0); } }

/* ---------- commands ---------- */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.cmd { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 20px; background: #05070D; border: 1px solid var(--line); border-radius: 16px; transition: border-color .25s, box-shadow .25s; }
.cmd:hover { border-color: rgba(45, 212, 191, .55); box-shadow: 0 0 0 4px rgba(20, 184, 166, .08); }
.cmd .pr { font-family: var(--mono); color: var(--teL); font-weight: 700; user-select: none; }
.cmd code { flex: 1; min-width: 0; background: none; padding: 0; font-size: 15px; color: var(--fg); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cmd .copy { flex: none; appearance: none; cursor: pointer; font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--fg); background: rgba(241, 245, 249, .08); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; transition: background .2s, color .2s; }
.cmd .copy:hover { background: var(--teL); color: #070912; }
.label { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mu); margin: 14px 0 -6px; }
.two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.two > * { min-width: 0; }

/* ---------- zero ---------- */
.zero { text-align: center; }
.zero .big { font-size: clamp(150px, 30vw, 380px); line-height: .8; font-weight: 800; letter-spacing: -.06em; margin: 0 0 10px; background: linear-gradient(180deg, var(--fg), rgba(241, 245, 249, .12)); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; display: inline-block; }
.zero .big::after { content: ""; position: absolute; left: -6%; right: -6%; top: 50%; height: 3px; background: linear-gradient(90deg, transparent, var(--teL), transparent); animation: scan 3.4s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(-110px); opacity: 0; } 15%, 85% { opacity: 1; } 50% { transform: translateY(110px); } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 26px 0 34px; }
.chip { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--mu); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; text-decoration: line-through; text-decoration-color: var(--re); text-decoration-thickness: 2px; }
.zero p { max-width: 760px; margin: 0 auto 16px; color: rgba(241, 245, 249, .78); }

/* ---------- relay ---------- */
.board { position: relative; width: 100%; max-width: 430px; margin: 0 auto; }
.board svg { display: block; width: 100%; height: auto; overflow: visible; }
.board .ring { fill: none; stroke: var(--teL); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ringout 3s ease-out infinite; opacity: 0; }
.board .ring.r2 { animation-delay: 1s; } .board .ring.r3 { animation-delay: 2s; }
@keyframes ringout { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.board .chip-b { fill: var(--pan); stroke: var(--teL); stroke-width: 3; }
.board .pin { stroke: var(--teL); stroke-width: 3; stroke-linecap: round; fill: none; }
.board .led { fill: var(--am); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.board .peer { fill: var(--inL); } .board .peer.t { fill: var(--teL); }
.board .spoke { stroke: rgba(241, 245, 249, .25); stroke-width: 1.5; stroke-dasharray: 5 7; fill: none; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }

footer { border-top: 1px solid var(--line); padding: 56px 0 30px; color: var(--mu); font-size: 15px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { margin: 12px 0 0; max-width: 240px; font-size: 14px; }
.foot nav { display: grid; gap: 10px; align-content: start; }
.foot h4 { margin: 0 0 8px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); }
footer a { color: var(--mu); text-decoration: none; } footer a:hover { color: var(--fg); }
.foot-bottom { display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }

@media (max-width: 900px) {
  .pillars, .two { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .demo { grid-template-columns: minmax(0, 1fr); }
  .wire { height: 150px; }
  .wire::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(to bottom, rgba(241, 245, 249, .3) 0 8px, transparent 8px 16px); }
  .track { display: none; }
  .relay { background: var(--bg); padding: 8px 0; }
  .term { min-height: 0; }
  section { padding: 78px 0; }
  .nav { padding: 0 14px; } .nav-pill { padding: 8px 10px; font-size: 14px; } .nav-pill.here, .nav-pill[href="/contact/"], .nav-logo .sep, .nav-logo .p2p { display: none; }
  .foot { grid-template-columns: 1fr 1fr; gap: 30px; } .foot-brand { grid-column: 1 / -1; }
  .cmd { flex-wrap: wrap; } .cmd .copy { width: 100%; }
  .wrap { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01s !important; scroll-behavior: auto !important; }
  .term .body > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .packet, .scroll, .pk { display: none; }
}
