/*
 * Biome terminal (owner order 2026-10-27): the home as a cypherpunk operating system.
 * Black + Hartii red only (no gold). Functional colours (live green, beta amber) appear on status pills and nowhere else.
 * Tokens mirror hartii-assets tokens/biome.json; fonts are the hartii-assets copy in /hx/fonts.
 * Effects are loud by owner choice and all switch off under prefers-reduced-motion.
 */

@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('/hx/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-display: swap; src: url('/hx/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 800; font-display: swap; src: url('/hx/fonts/big-shoulders-display-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 900; font-display: swap; src: url('/hx/fonts/big-shoulders-display-latin-900-normal.woff2') format('woff2'); }

.tx-home {
  --tx-bg: #050304;
  --tx-surface: rgba(12, 8, 9, .8);
  --tx-surface-2: rgba(26, 14, 16, .9);
  --tx-line: #2a1a1c;
  --tx-ink: #f2ecec;
  --tx-dim: #a89c9d;
  --tx-faint: #6f6365;
  --tx-red: #e8202f;
  --tx-hot: #ff3b47;
  --tx-live: #3ddc84;
  --tx-beta: #ffb020;
  --tx-paused: #8a8a8a;
  --tx-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  --tx-display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  /* The shared sections below the terminal (catalogue, partners, about) inherit the same voice. */
  --display: var(--tx-display);
  --body: var(--tx-mono);
  --mono: var(--tx-mono);
  --red: var(--tx-red);
  --red-hi: var(--tx-hot);
  --line: rgba(255, 70, 80, .13);
  --line-2: rgba(255, 70, 80, .26);
  --r: 2px;
  --max: 1240px;
  background:
    radial-gradient(120% 70% at 70% -10%, rgba(232, 32, 47, .16), transparent 60%),
    linear-gradient(rgba(255, 60, 70, .035) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, rgba(255, 60, 70, .035) 1px, transparent 1px) 0 0 / 32px 100%,
    var(--tx-bg);
  background-attachment: fixed;
  color: var(--tx-ink);
  font-family: var(--tx-mono);
}
.tx-home ::selection { background: var(--tx-red); color: #000; }

/* ---- the drama layer: a perspective grid floor flowing toward you, a red horizon, slow drifting light */
.tx-home main, .tx-home .footer { position: relative; z-index: 1; }
.tx-home::before {
  content: ''; position: fixed; z-index: 0; pointer-events: none; left: -60%; right: -60%; bottom: -10vh; height: 95vh;
  background:
    linear-gradient(rgba(255, 50, 64, .75) 2px, transparent 2px) 0 0 / 100% 72px,
    linear-gradient(90deg, rgba(255, 50, 64, .6) 2px, transparent 2px) 0 0 / 72px 100%;
  transform: perspective(700px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .6) 40%, transparent 88%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .6) 40%, transparent 88%);
  animation: tx-floor 2.6s linear infinite;
  opacity: .8;
}
@keyframes tx-floor { from { background-position: 0 0, 0 0; } to { background-position: 0 72px, 0 0; } }
.tx-home::after {
  content: ''; position: fixed; z-index: 0; pointer-events: none; inset: -20%;
  background:
    radial-gradient(38% 30% at 30% 30%, rgba(232, 32, 47, .30), transparent 70%),
    radial-gradient(34% 28% at 75% 65%, rgba(160, 10, 30, .32), transparent 70%),
    radial-gradient(70% 18% at 50% 92%, rgba(255, 40, 60, .30), transparent 75%);
  filter: blur(10px);
  animation: tx-drift 22s ease-in-out infinite alternate;
}
@keyframes tx-drift { 0% { transform: translate3d(-3%, -2%, 0) scale(1); } 50% { transform: translate3d(4%, 2%, 0) scale(1.08); } 100% { transform: translate3d(-2%, 4%, 0) scale(1.03); } }
.tx-home :focus-visible { outline: 2px solid var(--tx-hot); outline-offset: 2px; border-radius: 0; }
.tx-home h2, .tx-home h3 { font-family: var(--tx-display); font-weight: 900; text-transform: uppercase; letter-spacing: .005em; line-height: .9; }
.tx-wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.tx-home kbd { font: 700 11px/1 var(--tx-mono); border: 1px solid var(--tx-line); border-bottom-width: 2px; padding: 3px 6px; color: var(--tx-dim); background: #000; }

/* ---------------------------------------------------------------- CRT overlay: scanlines, vignette, a slow roll */
.tx-crt {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .2) 0 1px, transparent 1px 3px),
    radial-gradient(140% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%);
  mix-blend-mode: multiply;
}
.tx-crt::after {
  content: ''; position: absolute; inset: -20% 0 auto; height: 22%;
  background: linear-gradient(180deg, transparent, rgba(255, 70, 80, .045), transparent);
  animation: tx-roll 7s linear infinite;
}
@keyframes tx-roll { from { transform: translateY(-10vh); } to { transform: translateY(130vh); } }
/* The flicker lives on the screen-sized overlay, never on <main>: animating a page-tall layer blanks the page on phones (GPU limit). */
.tx-crt { animation: tx-flicker 9s steps(1) infinite; }
@keyframes tx-flicker { 0%, 100% { opacity: 1; } 47.1% { opacity: .55; } 47.4% { opacity: 1; } 81.2% { opacity: .75; } 81.4% { opacity: 1; } }

/* ---------------------------------------------------------------- top bar */
/* Solid bar: the home loads no blurred glass (fenced in biomeTerminal.test.mjs). */
.biome-home .nav.tx-bar { background: #050304; border-bottom: 1px solid var(--tx-line); backdrop-filter: none; -webkit-backdrop-filter: none; }
.biome-home .w3d-material-glass .w3d-slab-face { backdrop-filter: none; -webkit-backdrop-filter: none; }
.tx-home .nav-logo { font: 900 19px/1 var(--tx-display); letter-spacing: .14em; }
.tx-mark img { filter: saturate(1.25) contrast(1.1); }
.tx-mark-sub { color: var(--tx-red); letter-spacing: .04em; margin-left: -4px; }
.tx-home .nav-chain { border-radius: 0; border-color: var(--tx-line); font-family: var(--tx-mono); }
.tx-home .nav-links { align-items: center; gap: 2px; }
.tx-home .nav-links a { font: 400 12px/1 var(--tx-mono); text-transform: uppercase; letter-spacing: .08em; border-radius: 0; color: var(--tx-dim); }
.tx-home .nav-links a:hover, .tx-home .nav-links a[aria-current] { color: #000; background: var(--tx-red); }
.tx-kbar {
  display: inline-flex; align-items: center; gap: 8px; margin-inline: 6px 4px; padding: 7px 8px 7px 10px; cursor: pointer;
  font: 400 12px/1 var(--tx-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--tx-dim);
  background: #000; border: 1px solid var(--tx-line);
}
.tx-kbar:hover { color: var(--tx-ink); border-color: var(--tx-red); }
.tx-home .biome-wallet-button { border-radius: 0; font-family: var(--tx-mono); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }

/* ---------------------------------------------------------------- hero: the shell */
.tx-hero { padding-block: clamp(20px, 4vw, 48px) clamp(36px, 6vw, 72px); }
.tx-window {
  position: relative; background: rgba(10, 6, 7, .74); border: 1px solid var(--tx-line);
  box-shadow: 0 0 0 1px rgba(232, 32, 47, .08), 0 40px 140px -50px rgba(232, 32, 47, .45), inset 0 0 120px rgba(0, 0, 0, .6);
}
.tx-window::before, .tx-window::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid var(--tx-red); pointer-events: none; }
.tx-window::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.tx-window::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.tx-winbar {
  display: flex; align-items: center; gap: 14px; padding: 9px 14px; border-bottom: 1px solid var(--tx-line);
  font: 400 11px/1 var(--tx-mono); letter-spacing: .08em; color: var(--tx-faint); text-transform: uppercase;
}
.tx-dots { display: inline-flex; gap: 6px; }
.tx-dots i { width: 9px; height: 9px; border: 1px solid var(--tx-line); background: #000; }
.tx-dots i:first-child { background: var(--tx-red); border-color: var(--tx-red); }
.tx-wintitle { flex: 1; text-align: center; }
.tx-net { display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; }
.tx-net b { color: var(--tx-ink); font-weight: 400; }
.tx-led { width: 7px; height: 7px; background: var(--tx-live); box-shadow: 0 0 8px var(--tx-live); display: inline-block; animation: tx-blink 2.4s steps(1) infinite; }
@keyframes tx-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* The headline runs the full width of the window; the camel sits beside the copy under it. */
.tx-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: clamp(20px, 4vw, 56px); align-items: start;
  padding: clamp(22px, 4vw, 48px) clamp(18px, 4vw, 52px) clamp(10px, 2vw, 22px);
}
.tx-lead { display: contents; }
.tx-lead > * { grid-column: 1; }
.tx-prompt { grid-row: 1; font: 400 13px/1 var(--tx-mono); color: var(--tx-dim); margin-bottom: 18px; }
.tx-lead > .tx-h1 { grid-row: 2; grid-column: 1 / -1; }
.tx-manifesto { grid-row: 3; }
.tx-actions { grid-row: 4; }
.tx-note { grid-row: 5; }
.tx-camel-fig { grid-column: 2; grid-row: 3 / span 3; align-self: center; margin-top: 30px; }
/* The bar, its log, the roles and the session line run the full width under the copy (and move up under the headline on phones). */
.tx-hero-grid > .tx-cmd, .tx-hero-grid > .tx-out, .tx-hero-grid > .tx-roles, .tx-hero-grid > .tx-you { grid-column: 1 / -1; margin-inline: 0; padding-inline: 0; }
.tx-hero-grid > .tx-cmd { grid-row: 6; margin-top: clamp(22px, 3vw, 34px); padding-inline: 14px; }
.tx-hero-grid > .tx-out { grid-row: 7; }
.tx-hero-grid > .tx-roles { grid-row: 8; padding-bottom: 6px; }
.tx-hero-grid > .tx-you { grid-row: 9; padding-top: 12px; padding-bottom: 0; }
.tx-hero-grid { padding-bottom: clamp(22px, 3vw, 36px); }
.tx-ps1 { color: var(--tx-red); font-weight: 700; }
.tx-h1 {
  font-family: var(--tx-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3.4rem, 8.4vw, 9.4rem); line-height: .84; letter-spacing: -.005em; margin: 0;
}
.tx-h1 > span { display: block; position: relative; width: max-content; max-width: 100%; }
.tx-h1 em { font-style: normal; color: var(--tx-red); text-shadow: 0 0 34px rgba(232, 32, 47, .55); }
/* The glitch: two offset copies tear through the headline for a few frames every few seconds. */
.tx-h1 > span::before, .tx-h1 > span::after {
  content: attr(data-glitch); position: absolute; inset: 0; pointer-events: none; opacity: 0;
}
.tx-h1 > span::before { color: var(--tx-red); transform: translateX(-3px); animation: tx-tear 6.5s steps(1) infinite; }
.tx-h1 > span::after { color: #fff; transform: translateX(3px); animation: tx-tear 6.5s steps(1) infinite .09s; mix-blend-mode: difference; }
.tx-h1-b::before, .tx-h1-b::after { animation-delay: 2.7s !important; }
@keyframes tx-tear {
  0%, 93%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); }
  94% { opacity: 1; clip-path: inset(12% 0 64% 0); }
  95% { opacity: 1; clip-path: inset(58% 0 18% 0); transform: translateX(5px); }
  96% { opacity: 1; clip-path: inset(30% 0 46% 0); transform: translateX(-4px); }
  97% { opacity: 0; }
}
.tx-manifesto { margin-top: 22px; font: 400 clamp(14px, 1.3vw, 16px)/1.55 var(--tx-mono); color: var(--tx-dim); max-width: 48ch; }
.tx-cursor { display: inline-block; width: .6em; height: 1.1em; margin-left: 6px; vertical-align: -.18em; background: var(--tx-red); animation: tx-blink 1.05s steps(1) infinite; }
.tx-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 26px; }
.tx-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; text-decoration: none;
  font: 700 12.5px/1 var(--tx-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--tx-ink); border: 1px solid var(--tx-line); background: #000; transition: background .12s, color .12s, border-color .12s, box-shadow .12s;
}
.tx-btn:hover { border-color: var(--tx-red); box-shadow: 4px 4px 0 var(--tx-red); }
.tx-btn-hot { background: var(--tx-red); border-color: var(--tx-red); color: #000; }
.tx-btn-hot:hover { background: #fff; border-color: #fff; color: #000; box-shadow: 4px 4px 0 var(--tx-red); }
.tx-note { margin-top: 12px; font: 400 12px/1.5 var(--tx-mono); color: var(--tx-faint); max-width: 52ch; }

.tx-camel-fig { margin: 0; container-type: inline-size; display: grid; justify-items: end; align-content: center; gap: 10px; }
.tx-camel {
  margin: 0; white-space: pre; overflow: hidden; color: var(--tx-red); user-select: none;
  /* 64 columns of mono text fill the figure exactly; a JetBrains Mono cell is 0.6em wide. */
  font: 700 min(14px, calc(100cqi / 38.6))/1.02 var(--tx-mono);
  text-shadow: 0 0 10px rgba(232, 32, 47, .55), 0 0 1px rgba(255, 120, 130, .8);
}
.tx-camel.tx-hit { animation: tx-hit .5s ease-out; }
/* The 3D camel (camel3d.mjs) draws over the text mark, which keeps its place in the layout and is the fallback. */
.tx-camel-fig { position: relative; }
.tx-camel.is-3d { visibility: hidden; }
.tx-camel-gl { position: absolute; left: -8%; top: 2%; width: 114%; height: 104%; pointer-events: none; }
@keyframes tx-hit { 0% { color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, .7); } 100% { color: var(--tx-red); } }
.tx-camel-cap { font: 400 11px/1 var(--tx-mono); color: var(--tx-faint); letter-spacing: .08em; text-transform: uppercase; }
.tx-camel-cap b { color: var(--tx-dim); font-weight: 400; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- the command bar */
.tx-cmd {
  position: relative; z-index: 5; display: flex; align-items: center; gap: 12px;
  margin: clamp(14px, 2vw, 22px) clamp(18px, 4vw, 52px) 0; padding: 0 14px;
  border: 1px solid var(--tx-red); background: #000; box-shadow: 0 0 0 4px rgba(232, 32, 47, .08), 0 0 40px -12px rgba(232, 32, 47, .7);
}
.tx-cmd[hidden] { display: none; }
.tx-cmd .tx-ps1 { font: 700 14px/1 var(--tx-mono); white-space: nowrap; }
.tx-q {
  flex: 1; min-width: 0; height: 58px; border: 0; outline: 0; background: transparent; caret-color: var(--tx-red);
  font: 400 18px/1 var(--tx-mono); color: var(--tx-ink);
}
.tx-q::placeholder { color: var(--tx-faint); }
.tx-cmd:focus-within { box-shadow: 0 0 0 4px rgba(232, 32, 47, .2), 0 0 60px -10px rgba(232, 32, 47, .9); }
.tx-results {
  position: absolute; left: -1px; right: -1px; top: 100%; margin: 0; padding: 4px 0; list-style: none;
  background: #050304; border: 1px solid var(--tx-red); border-top-color: var(--tx-line); max-height: min(60vh, 440px); overflow: auto;
}
.tx-results li {
  display: grid; grid-template-columns: 11ch minmax(0, 1fr) auto; grid-template-areas: "cmd name pill" "cmd fee fee";
  gap: 3px 14px; padding: 10px 14px; cursor: pointer; border-left: 3px solid transparent;
}
.tx-results li[aria-selected="true"] { background: rgba(232, 32, 47, .12); border-left-color: var(--tx-red); }
.tx-r-cmd { grid-area: cmd; color: var(--tx-red); font-weight: 700; font-size: 13px; }
.tx-r-name { grid-area: name; font-size: 14px; }
.tx-r-fee { grid-area: fee; font-size: 12px; color: var(--tx-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-r-pill, .tx-pill { grid-area: pill; font: 700 10px/1 var(--tx-mono); letter-spacing: .12em; padding: 4px 6px; border: 1px solid currentColor; align-self: start; }
.is-live { color: var(--tx-live); }
.is-beta { color: var(--tx-beta); }
.is-paused { color: var(--tx-paused); }

.tx-out { margin: 14px clamp(18px, 4vw, 52px) 0; font: 400 13px/1.6 var(--tx-mono); color: var(--tx-dim); white-space: pre-wrap; overflow-wrap: anywhere; }
.tx-out[hidden] { display: none; }
.tx-out p { margin: 0; }
.tx-out .tx-echo { color: var(--tx-faint); }
.tx-out .tx-ok { color: var(--tx-ink); }
.tx-out .tx-err { color: var(--tx-hot); }

.tx-roles {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px clamp(18px, 4vw, 52px) clamp(20px, 3vw, 30px);
}
.tx-roles[hidden] { display: none; }
.tx-roles-q { font: 400 12px/1 var(--tx-mono); color: var(--tx-faint); text-transform: uppercase; letter-spacing: .1em; margin-right: 6px; white-space: nowrap; flex: none; }
.tx-roles button {
  font: 700 13px/1 var(--tx-mono); text-transform: lowercase; letter-spacing: .04em; padding: 11px 14px; min-height: 40px; cursor: pointer;
  color: var(--tx-ink); background: #000; border: 1px solid var(--tx-line); transition: background .1s, color .1s, border-color .1s;
}
.tx-roles button::before { content: '[ '; color: var(--tx-faint); }
.tx-roles button::after { content: ' ]'; color: var(--tx-faint); }
.tx-roles button:hover { border-color: var(--tx-red); }
.tx-roles button[aria-pressed="true"] { background: var(--tx-red); border-color: var(--tx-red); color: #000; }
.tx-roles button[aria-pressed="true"]::before, .tx-roles button[aria-pressed="true"]::after { color: #000; }
.tx-roles .tx-role-start { border-color: var(--tx-red); color: var(--tx-hot); }

.tx-you { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; padding: 0 clamp(18px, 4vw, 52px) 22px; font: 400 12.5px/1.4 var(--tx-mono); }
.tx-you[hidden] { display: none; }
.tx-you-k { color: var(--tx-faint); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.tx-you b { font-weight: 700; font-variant-numeric: tabular-nums; }
.tx-you a { color: var(--tx-hot); }

/* ---------------------------------------------------------------- section heads */
.tx-sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: end; margin-bottom: clamp(18px, 3vw, 30px); }
.tx-eyebrow { grid-column: 1 / -1; font: 700 12px/1 var(--tx-mono); color: var(--tx-red); letter-spacing: .12em; }
.tx-sec-head h2 { font-size: clamp(2.4rem, 6.4vw, 5.6rem); }
.tx-sec-note { grid-column: 1 / -1; font: 400 13px/1.55 var(--tx-mono); color: var(--tx-dim); max-width: 70ch; }
.tx-sec-head .ls-link { font: 400 12px/1 var(--tx-mono); color: var(--tx-dim); text-transform: uppercase; letter-spacing: .08em; }

/* ---------------------------------------------------------------- the index */
.tx-index { padding-block: clamp(30px, 5vw, 64px); scroll-margin-top: 60px; }
.tx-anchor { display: block; height: 0; }
.tx-groups { display: grid; gap: clamp(28px, 4vw, 48px); }
.tx-group { scroll-margin-top: 72px; }
.tx-group-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 18px; padding-bottom: 12px; margin-bottom: 0;
  border-bottom: 1px solid var(--tx-line); position: relative;
}
.tx-group-head::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 64px; height: 2px; background: var(--tx-red); }
.tx-group-head h3 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.tx-slash { color: var(--tx-red); }
.tx-group-head p { font: 400 12.5px/1.4 var(--tx-mono); color: var(--tx-dim); padding-bottom: 4px; }
.tx-count { font: 900 clamp(2rem, 4vw, 3rem)/.8 var(--tx-display); color: transparent; -webkit-text-stroke: 1px rgba(232, 32, 47, .45); }

.tx-cards {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
}
/* Hairlines from the cards themselves, so a short last row leaves clean empty space instead of a tinted block. */
.tx-card { position: relative; display: grid; grid-template-rows: 1fr auto; background: var(--tx-surface); min-width: 0; outline: 1px solid var(--tx-line); outline-offset: -.5px; transition: background .12s, opacity .2s, filter .2s; }
.tx-card-go {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "glyph head pill" "line line line" "fee fee open";
  gap: 12px 12px; padding: 18px 18px 14px; text-decoration: none; color: inherit; height: 100%; align-content: start;
}
.tx-glyph { grid-area: glyph; width: 44px; height: 44px; --led: #f2ecec; --pn-hot: var(--tx-red); }
.tx-glyph .pn-led-bed { display: block; stroke: rgba(255, 255, 255, .07); stroke-width: 1.15; stroke-linecap: round; fill: none; }
.tx-card-head { grid-area: head; display: grid; gap: 4px; min-width: 0; }
.tx-card-cmd { font: 700 11.5px/1 var(--tx-mono); color: var(--tx-red); }
.tx-name { font: 800 1.45rem/.95 var(--tx-display); text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.tx-line { grid-area: line; font: 400 12.5px/1.55 var(--tx-mono); color: var(--tx-dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tx-fee { grid-area: fee; font: 400 11.5px/1.45 var(--tx-mono); color: var(--tx-ink); align-self: end; }
.tx-fee b { color: var(--tx-faint); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; margin-right: 6px; }
.tx-open { grid-area: open; align-self: end; font: 700 11px/1 var(--tx-mono); color: var(--tx-faint); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.tx-ca { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 18px 12px; border-top: 1px dashed var(--tx-line); font: 400 11px/1.3 var(--tx-mono); }
.tx-ca-label { color: var(--tx-faint); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; flex: 1 1 100%; }
.tx-ca a { color: var(--tx-dim); font-variant-numeric: tabular-nums; }
.tx-ca a:hover { color: var(--tx-ink); }
.tx-copy { margin-left: auto; font: 700 10px/1 var(--tx-mono); text-transform: uppercase; letter-spacing: .1em; padding: 6px 8px; min-height: 28px; cursor: pointer; color: var(--tx-dim); background: transparent; border: 1px solid var(--tx-line); }
.tx-copy:hover { color: #000; background: var(--tx-red); border-color: var(--tx-red); }

/* Hover: the card lights, red brackets snap to its corners, the glyph plays (terminal.mjs). */
.tx-card::before, .tx-card::after { content: ''; position: absolute; width: 12px; height: 12px; border: 2px solid var(--tx-red); opacity: 0; transition: opacity .1s, transform .16s; pointer-events: none; }
.tx-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; transform: translate(6px, 6px); }
.tx-card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; transform: translate(-6px, -6px); }
.tx-card:hover, .tx-card:focus-within { background: var(--tx-surface-2); z-index: 1; }
.tx-card:hover::before, .tx-card:hover::after, .tx-card:focus-within::before, .tx-card:focus-within::after { opacity: 1; transform: none; }
.tx-card:hover .tx-open, .tx-card:focus-within .tx-open { color: var(--tx-red); }
.tx-card-go:focus-visible { outline-offset: -3px; }
.tx-card[data-dim] { opacity: .16; filter: grayscale(1); }
[data-filtering] .tx-card:not([data-dim]) { background: var(--tx-surface-2); box-shadow: inset 0 0 0 1px rgba(232, 32, 47, .55); }
.tx-group:has(.tx-card:not([data-dim])) .tx-group-head { opacity: 1; }
[data-filtering] .tx-group:not(:has(.tx-card:not([data-dim]))) { display: none; }
.tx-group-start .tx-group-head::after { width: 100%; }
/* ---- the cards in 3D: tilt toward the mouse, lift, a glare that follows the pointer, the glyph standing forward */
.tx-cards { perspective: 1200px; }
.tx-card {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), background .12s, box-shadow .28s, opacity .7s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 55ms), translate .8s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 55ms), rotate .8s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 55ms), filter .2s;
}
.tx-card:hover, .tx-card:focus-within {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(26px);
  box-shadow: 0 34px 70px -24px rgba(232, 32, 47, .55), 0 0 0 1px rgba(232, 32, 47, .4);
}
.tx-card-go { position: relative; transform-style: preserve-3d; }
.tx-card-go::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 90, 100, .16), transparent 45%);
}
.tx-card:hover .tx-card-go::after { opacity: 1; }
.tx-glyph, .tx-card-head, .tx-pill { transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.tx-card:hover .tx-glyph { transform: translateZ(42px) scale(1.06); }
.tx-card:hover .tx-card-head { transform: translateZ(22px); }
.tx-card:hover .tx-pill { transform: translateZ(30px); }
/* rise in: each group's cards fold up out of the floor, one after another */
.tx-rise .tx-card { opacity: 0; translate: 0 46px; rotate: x 24deg; }
.tx-rise.is-in .tx-card { opacity: 1; translate: 0 0; rotate: x 0deg; }
/* a scanner light runs along every group's rule */
.tx-group-head::before {
  content: ''; position: absolute; left: 0; bottom: -1px; width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--tx-hot), transparent); box-shadow: 0 0 10px var(--tx-hot);
  animation: tx-scan 5.5s cubic-bezier(.6, 0, .4, 1) infinite;
}
@keyframes tx-scan { 0% { transform: translateX(-120px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(calc(100vw - 200px)); opacity: 0; } }
.tx-flash { animation: tx-sweep .5s ease-out; }
@keyframes tx-sweep { 0% { filter: brightness(1.8) contrast(1.2); clip-path: inset(0 0 100% 0); } 100% { filter: none; clip-path: inset(0 0 0 0); } }

/* ---------------------------------------------------------------- live */
.tx-sys { padding-block: clamp(30px, 5vw, 64px); border-top: 1px solid var(--tx-line); }
.tx-sys-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1px; background: var(--tx-line); border: 1px solid var(--tx-line); }
.tx-home .tx-sys .ls-grid { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; border-radius: 0; gap: 1px; background: var(--tx-line); }
.tx-home .tx-sys .ls-cell { background: var(--tx-surface); border: 0; padding: 18px 20px; }
.tx-home .tx-sys .ls-cell .v { font: 700 clamp(1.4rem, 2.6vw, 2.1rem)/1.05 var(--tx-mono); color: var(--tx-ink); }
.tx-home .tx-sys .ls-cell dt { color: var(--tx-faint); }
.tx-home .tx-sys .ls-sub { font-size: 11.5px; color: var(--tx-faint); }
.tx-home .tx-sys .ls-sub a { color: var(--tx-dim); }
.tx-feed { background: #000; padding: 16px 18px; min-height: 260px; display: grid; grid-template-rows: auto 1fr; gap: 10px; }
.tx-feed-head { font: 400 11px/1 var(--tx-mono); color: var(--tx-faint); text-transform: uppercase; letter-spacing: .1em; display: flex; align-items: center; gap: 8px; }
.tx-feed-log { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 6px; font: 400 12.5px/1.45 var(--tx-mono); }
.tx-feed-log li { display: grid; grid-template-columns: 8.5ch minmax(0, 1fr); gap: 10px; color: var(--tx-dim); }
.tx-feed-log time { color: var(--tx-faint); font-variant-numeric: tabular-nums; }
.tx-feed-log li.tx-new { color: var(--tx-ink); animation: tx-in .9s ease-out; }
.tx-feed-log li.tx-new span::before { content: '+ '; color: var(--tx-red); }
@keyframes tx-in { 0% { background: rgba(232, 32, 47, .35); } 100% { background: transparent; } }
.tx-feed-log:empty::before { content: 'reading the chain…'; color: var(--tx-faint); }
.tx-home .ls-note { margin-top: 14px; font: 400 12px/1.5 var(--tx-mono); color: var(--tx-faint); }

/* ---------------------------------------------------------------- wall + the shared sections below */
.tx-wall { border-top: 1px solid var(--tx-line); }
.tx-wall .ls-head h2 { font-size: clamp(2.4rem, 6.4vw, 5.6rem); }
.tx-rest { border-top: 1px solid var(--tx-line); }
.tx-home .band, .tx-home .about { background: transparent; }
.tx-home .about h2, .tx-home .band h2 { text-transform: uppercase; }
.tx-home .btn { border-radius: 0; font-family: var(--tx-mono); text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; }
.tx-home .footer { background: #000; border-top-color: var(--tx-line); font-family: var(--tx-mono); }

/* ---------------------------------------------------------------- boot and exit */
.tx-veil { position: fixed; inset: 0; z-index: 200; background: #000; display: grid; place-items: center start; padding: clamp(20px, 8vw, 120px); transition: opacity .38s, clip-path .38s; clip-path: inset(0 0 0 0); }
.tx-veil pre { margin: 0; font: 400 clamp(12px, 1.5vw, 15px)/1.7 var(--tx-mono); color: var(--tx-dim); white-space: pre-wrap; text-shadow: 0 0 8px rgba(232, 32, 47, .35); }
.tx-veil pre::first-line { color: var(--tx-red); font-weight: 700; }
.tx-veil.is-out { opacity: 0; clip-path: inset(48% 0 48% 0); }
.tx-booting body { overflow: hidden; }
.tx-exiting main, .tx-exiting .nav { animation: tx-exit .65s steps(6) forwards; }
@keyframes tx-exit {
  0% { filter: none; }
  30% { filter: contrast(2) brightness(1.4); transform: translateX(6px); clip-path: inset(10% 0 20% 0); }
  60% { filter: grayscale(1) contrast(3); transform: translateX(-8px) skewX(4deg); clip-path: inset(40% 0 30% 0); }
  100% { opacity: 0; clip-path: inset(50% 0 50% 0); }
}

/* ---------------------------------------------------------------- tablets: the top bar keeps the verbs, the window bar keeps the block */
@media (max-width: 1100px) {
  .tx-home .nav-chain { display: none; }
  .tx-home .nav-links a[href="#partnerships"], .tx-home .nav-links a[href="/contact"] { display: none; }
}
@media (max-width: 900px) {
  .tx-home .tx-kbar, .tx-home .nav-links .nav-about { display: none; }
  .tx-home .nav-links a { padding-inline: 8px; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 900px) {
  .tx-hero-grid { grid-template-columns: minmax(0, 1fr); }
  /* Phones: find first. Headline, then the bar and the roles, then the buttons, the camel last. */
  .tx-manifesto { grid-row: 3; }
  .tx-hero-grid > .tx-cmd { grid-row: 4; margin-top: 22px; }
  .tx-hero-grid > .tx-out { grid-row: 5; }
  .tx-hero-grid > .tx-roles { grid-row: 6; }
  .tx-hero-grid > .tx-you { grid-row: 7; }
  .tx-actions { grid-row: 8; }
  .tx-note { grid-row: 9; }
  .tx-camel-fig { grid-column: 1; grid-row: 10; justify-items: start; margin-top: 26px; }
  .tx-sys-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .tx-home .tx-kbar { display: none; }
  .tx-home .nav-chain { display: none; } /* the window bar carries the block on phones */
  .tx-hero { padding-top: 12px; }
  .tx-winbar { padding: 8px 10px; gap: 10px; }
  .tx-wintitle { display: none; }
  .tx-net { margin-left: auto; }
  .tx-h1 { font-size: clamp(3.1rem, 17vw, 5rem); }
  .tx-actions .tx-btn { flex: 1 1 100%; justify-content: center; }
  .tx-cmd { padding: 0 10px; gap: 8px; }
  .tx-cmd .tx-ps1 { font-size: 12px; }
  .tx-cmd .tx-ps1::before { content: '~$'; }
  .tx-cmd .tx-ps1 { font-size: 0; }
  .tx-cmd .tx-ps1::before { font-size: 14px; }
  .tx-cmd .tx-kbd { display: none; }
  .tx-q { height: 52px; font-size: 16px; }
  .tx-roles { gap: 6px; }
  .tx-roles-q { flex-basis: 100%; margin-bottom: 4px; }
  .tx-roles button { flex: 1 1 calc(33.333% - 6px); padding-inline: 4px; font-size: 12px; white-space: nowrap; }
  .tx-results li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name pill" "fee fee"; }
  .tx-r-cmd { display: none; }
  .tx-sec-head { grid-template-columns: minmax(0, 1fr); }
  .tx-group-head { grid-template-columns: minmax(0, 1fr) auto; }
  .tx-group-head p { grid-column: 1 / -1; grid-row: 2; }
  .tx-home .tx-sys .ls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tx-home .tx-sys .ls-cell { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .tx-crt, .tx-crt::after, .tx-home main, .tx-h1 > span::before, .tx-h1 > span::after, .tx-led, .tx-cursor, .tx-home::before, .tx-home::after, .tx-group-head::before { animation: none !important; }
  .tx-card, .tx-card:hover { transform: none; transition: none; }
  .tx-h1 > span::before, .tx-h1 > span::after { display: none; }
}
