/* RPX — Direction A: SIGNAL */
:root {
  --bg: #050506;
  --fg: #e6e8e9;
  --soft: #c4c8cb;
  --dim: #858a8e;
  --faint: #45494d;
  --line: #191a1c;
  --accent: #c8ff00;
  --pad: clamp(20px, 4.4vw, 64px);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); font-family: var(--mono); font-size: 14px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { min-height: 100vh; overflow-x: hidden; background: var(--bg); }
::selection { background: var(--accent); color: #000; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
kbd { font-family: var(--mono); border: 1px solid var(--faint); border-radius: 2px; padding: 0 5px; color: var(--fg); font-size: 10px; }
ol, ul { list-style: none; }

#field { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100lvh; display: block; z-index: 0; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }

.label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 400; }
.cur { display: inline-block; width: .52em; height: .8em; margin-left: .08em; background: var(--accent); vertical-align: -0.04em; animation: blink 1.1s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 32px; padding: 22px var(--pad); transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(5, 5, 6, .82); border-bottom-color: var(--line); }
.mark { font-weight: 800; font-size: 17px; letter-spacing: -.02em; display: inline-flex; align-items: center; }
.mark .cur { width: .5em; height: .82em; }
.nav-links { margin-left: auto; display: flex; gap: 28px; }
.nav-links a { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); transition: color .2s; }
.nav-links a i { font-style: normal; color: var(--faint); margin-right: 8px; }
.nav-links a:hover { color: var(--fg); }
.term-btn { width: 30px; height: 30px; border: 1px solid var(--faint); border-radius: 2px; color: var(--fg); font-size: 13px; display: grid; place-items: center; transition: border-color .2s, color .2s; }
.term-btn:hover { border-color: var(--accent); color: var(--accent); }

/* HERO */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: 108px var(--pad) 32px; text-shadow: 0 0 28px #000, 0 0 3px #000; }
.hero-meta { display: flex; gap: 40px; }
.hero-meta span:first-child { color: var(--soft); }
.hero-core { margin-top: auto; margin-bottom: clamp(40px, 9vh, 110px); }
.wordmark { font-weight: 800; font-size: clamp(104px, 19vw, 290px); line-height: .8; letter-spacing: -.06em; margin-left: -.05em; display: flex; align-items: flex-end; }
.wordmark .cur { width: .34em; height: .075em; margin-left: .07em; margin-bottom: .01em; }
.wm-bits { margin-top: 22px; color: var(--faint); letter-spacing: .3em; }
.tagline { margin-top: clamp(22px, 3.4vh, 40px); font-weight: 500; font-size: clamp(27px, 4.55vw, 66px); line-height: 1.08; letter-spacing: -.035em; max-width: 22ch; min-height: 1.08em; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; }
#tc { color: var(--faint); font-variant-numeric: tabular-nums; }

/* SECTIONS */
.sec { padding: clamp(110px, 14vw, 210px) var(--pad) 0; }
.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head span { white-space: nowrap; }
.sec-head span:nth-child(2) { color: var(--fg); }
.sec-head .rule { flex: 1; height: 1px; background: var(--line); }

/* THESIS */
.thesis { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(72px, 9vw, 140px); }
.thesis-p { max-width: 64ch; margin-left: auto; font-size: clamp(15px, 1.42vw, 20px); line-height: 1.7; color: var(--soft); font-weight: 400; background: rgba(5, 5, 6, .6); }
.manifesto p { font-size: clamp(22px, 3.7vw, 54px); font-weight: 700; line-height: 1.22; letter-spacing: -.035em; display: flex; align-items: baseline; flex-wrap: nowrap; }
.manifesto p + p { margin-top: .18em; }
.manifesto .pr { color: var(--faint); font-weight: 400; margin-right: .55em; flex: none; }
.manifesto .mline { min-width: 0; }
.manifesto .cur { flex: none; align-self: center; }

/* PORTFOLIO */
.tx-list { border-bottom: 1px solid var(--line); }
.tx { border-top: 1px solid var(--line); }
.tx-row { display: grid; grid-template-columns: 78px minmax(150px, 1.05fr) minmax(0, 2fr) 120px 190px 76px; align-items: center; gap: 24px; min-height: 96px; padding: 0 18px; background: rgba(5, 5, 6, .74); transition: background .3s; position: relative; }
.tx-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transition: transform .3s; }
.tx-row:hover { background: rgba(14, 15, 16, .9); }
.tx-row:hover::before { transform: scaleY(1); }
.tx-i, .tx-sector, .tx-status, .tx-domain { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.tx-i { color: var(--faint); }
.tx-name { font-size: clamp(19px, 1.7vw, 24px); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.tx-line { color: var(--soft); font-size: 14px; line-height: 1.45; }
.tx-domain { text-transform: none; letter-spacing: .04em; font-size: 12px; display: flex; gap: 8px; }
.tx-domain .arr { color: var(--faint); transition: color .2s, transform .2s; }
.tx-row:hover .arr { color: var(--accent); transform: translate(2px, -2px); }
.tx-status { display: flex; align-items: center; gap: 8px; justify-content: flex-end; color: var(--fg); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(200, 255, 0, .6); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.is-incoming .dot { background: #ff2a2a; box-shadow: 0 0 8px rgba(255, 42, 42, .7); }

/* CLASSIFIED */
.cls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cls { position: relative; overflow: hidden; border: 1px solid var(--line); background: #070708; padding: 28px; min-height: 290px; display: flex; flex-direction: column; }
.cls-noise { position: absolute; inset: 0; font-size: 10px; line-height: 12px; letter-spacing: .1em; color: #1f2123; word-break: break-all; overflow: hidden; user-select: none; pointer-events: none; }
.cls > *:not(.cls-noise) { position: relative; }
.cls-top { display: flex; justify-content: space-between; margin-bottom: 44px; }
.cls-tag { color: var(--fg); display: inline-flex; align-items: center; gap: 8px; }
.cls-tag i { width: 7px; height: 7px; background: var(--fg); animation: blink 1.6s steps(1, end) infinite; }
.cls-k { margin-bottom: 12px; }
.cls-code { position: relative; display: inline-block; align-self: flex-start; font-size: clamp(40px, 4.6vw, 68px); line-height: 1; font-weight: 700; letter-spacing: .06em; white-space: nowrap; padding: 4px 6px; }
.cls-text { color: var(--fg); }
.bars { position: absolute; inset: 0; }
.bars i { position: absolute; top: -1px; bottom: -1px; background: #000; box-shadow: 0 0 0 1px #000; will-change: transform; }
.cls-lines { margin-top: 26px; display: grid; gap: 10px; }
.cls-lines i { display: block; height: 13px; background: #000; border: 1px solid #1c1e20; }
.cls-foot { margin-top: auto; padding-top: 34px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; color: var(--faint); }
.cls-foot span { white-space: nowrap; }

/* TEAM */
.team { border-bottom: 1px solid var(--line); }
.mem { display: grid; grid-template-columns: 64px minmax(0, 1.15fr) minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 20px 18px; border-top: 1px solid var(--line); background: rgba(5, 5, 6, .74); }
.sig { width: 36px; height: 36px; display: block; }
.sig svg { width: 100%; height: 100%; display: block; shape-rendering: crispEdges; }
.sig rect { fill: var(--fg); }
.sig rect.a { fill: var(--accent); }
.mem-name { font-size: clamp(16px, 1.45vw, 20px); font-weight: 700; letter-spacing: -.015em; }
.mem-role { color: var(--soft); font-size: 13px; }
.mem-loc { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-width: 0; }
.mem-bits { color: var(--faint); text-align: right; letter-spacing: .12em; font-size: 10px; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; transition: color .3s; }
.loc-b { color: var(--faint); font-size: 9px; min-height: 1em; }
.globe-slot { position: relative; width: 40px; height: 36px; flex: none; }
.globe { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.mem.locating .globe { opacity: 1; }
.mem.locating .loc-a { color: var(--fg); }
.mem { position: relative; cursor: crosshair; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* CONTACT */
.cta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta { padding: 36px 32px 40px 0; display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.cta + .cta { padding-left: 32px; border-left: 1px solid var(--line); }
.cta-lead { font-size: clamp(20px, 1.9vw, 28px); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; margin-top: 18px; }
.cta-sub { color: var(--dim); font-size: 13px; line-height: 1.6; max-width: 38ch; }
.mail { margin-top: auto; font-size: 15px; color: var(--fg); align-self: flex-start; border-bottom: 1px solid var(--faint); padding-bottom: 3px; transition: border-color .2s, color .2s; }
.mail:hover { border-color: var(--accent); color: var(--accent); }
.access + .mail { margin-top: 0; }
.access { margin-top: auto; align-self: flex-start; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--faint); padding: 10px 14px; transition: border-color .2s, color .2s; }
.access:hover { border-color: var(--accent); color: var(--accent); }

/* FOOTER */
.foot { padding: clamp(90px, 10vw, 150px) var(--pad) 28px; }
/* currency line: world currency symbols flip into the motto */
@font-face { font-family: "RPX Money"; font-weight: 100 900; font-display: swap; src: url("fonts/rpx-money-noto-mono-bold.woff2") format("woff2"); }
.mint { text-align: center; margin: 0 0 clamp(70px, 9vw, 130px); font-family: "JetBrains Mono", "RPX Money", ui-monospace, monospace; font-weight: 700; font-size: clamp(22px, 3.55vw, 54px); line-height: 1.25; color: var(--fg); cursor: default; }
.mint-line { display: block; perspective: 600px; }
.mw { display: inline-block; white-space: nowrap; }
.mc { display: inline-block; width: .6em; text-align: center; transform-origin: 50% 55%; backface-visibility: hidden; }
.mc.mny { color: var(--accent); font-weight: 400; }
.mc.dim { color: #3c4a12; }
.mt2, .mt3 { display: inline-block; vertical-align: .32em; font-weight: 700; }
.mt2 { font-size: .5em; letter-spacing: -.04em; }
.mt3 { font-size: .36em; letter-spacing: -.06em; }
.msvg { display: inline-block; width: .5em; height: .72em; vertical-align: -.06em; fill: currentColor; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; }
.ok { color: var(--accent); font-weight: 400; }
.switch { color: var(--dim); transition: color .2s; }
.switch b { color: #8f89ff; font-weight: 500; }
.switch:hover { color: var(--fg); }
.switch:hover b { color: #b3adff; text-shadow: 0 0 12px rgba(119, 112, 255, .8); }

/* TERMINAL */
.term { position: fixed; z-index: 50; left: var(--pad); bottom: 28px; width: min(640px, calc(100vw - 2 * var(--pad))); background: rgba(3, 3, 4, .96); border: 1px solid #2a2c2f; box-shadow: 0 30px 80px rgba(0, 0, 0, .8); font-size: 12.5px; }
.term[hidden] { display: none; }
.term-bar { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-bottom: 1px solid #1d1f21; font-size: 10px; }
.term-x { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.term-x:hover { color: var(--fg); }
.term-out { max-height: min(46vh, 380px); overflow-y: auto; padding: 14px 14px 4px; white-space: pre-wrap; line-height: 1.6; color: var(--soft); }
.term-out .c { color: var(--fg); }
.term-out .c b { color: var(--accent); font-weight: 400; }
.term-out .d { color: var(--dim); }
.term-out .e { color: #ff5c5c; }
.term-out .a { color: var(--accent); }
.term-in { display: flex; gap: 10px; padding: 8px 14px 14px; align-items: center; }
.term-in .ps { color: var(--accent); flex: none; }
.term-quick { display: none; flex-wrap: wrap; gap: 6px; padding: 4px 14px 10px; }
.term-quick button { font: inherit; font-size: 11px; color: var(--soft); border: 1px solid #2a2c2f; border-radius: 2px; padding: 6px 9px; background: transparent; }
.term-quick button:active { border-color: var(--accent); color: var(--accent); }
.touch-only { display: none; }
@media (hover: none) {
  .kbd-only { display: none; } .touch-only { display: inline; }
  .term-quick { display: flex; }
  /* iOS zooms the page into any input under 16px */
  .term .term-in input { font-size: 16px; }
}
.term-in input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--fg); font: inherit; caret-color: var(--accent); }

/* REVEAL (JS only) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s cubic-bezier(.2, .7, .1, 1), transform 1.1s cubic-bezier(.2, .7, .1, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .mem.reveal { transition-delay: calc(var(--i, 0) * 70ms); }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .tx-row { grid-template-columns: 64px minmax(130px, 1fr) minmax(0, 1.8fr) 100px 76px; }
  .tx-domain { display: none; }
  .nav-links { gap: 20px; }
}
@media (max-width: 760px) {
  html { font-size: 13px; }
  .hide-sm { display: none !important; }
  .nav { padding: 16px var(--pad); }
  .nav-links { display: none; }
  .term-btn { margin-left: auto; }
  .hero { padding-top: 84px; padding-bottom: 24px; }
  .wm-bits { letter-spacing: .18em; font-size: 10px; }
  .thesis-p { margin-left: 0; }
  .manifesto .pr { margin-right: .4em; }
  .tx-row { grid-template-columns: auto 1fr auto; grid-template-areas: "i sector status" "name name name" "line line line" "domain domain domain"; gap: 8px 14px; padding: 22px 16px; min-height: 0; }
  .tx-i { grid-area: i; } .tx-sector { grid-area: sector; } .tx-status { grid-area: status; }
  .tx-name { grid-area: name; margin-top: 10px; white-space: normal; font-size: 22px; }
  .tx-line { grid-area: line; }
  .tx-domain { grid-area: domain; display: flex; margin-top: 4px; }
  .cls-grid { grid-template-columns: 1fr; }
  .cls { padding: 22px; min-height: 250px; }
  .mem { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "sig name" "sig role" "sig bits"; gap: 4px 16px; padding: 18px 14px; }
  .sig { grid-area: sig; width: 32px; height: 32px; align-self: start; margin-top: 3px; }
  .mem-name { grid-area: name; } .mem-role { grid-area: role; } .mem-loc { grid-area: bits; justify-content: flex-start; margin-top: 6px; gap: 0; } .globe-slot { position: absolute; right: 22px; bottom: 16px; } .mem-bits { align-items: flex-start; text-align: left; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta, .cta + .cta { padding: 32px 0; border-left: 0; min-height: 0; }
  .cta + .cta { border-top: 1px solid var(--line); }
  .mail, .access { margin-top: 18px; }
  .access + .mail { margin-top: 4px; }
  .foot-row { flex-direction: column; gap: 10px; }
  .term { left: 10px; right: 10px; width: auto; top: 10px; bottom: auto; font-size: 12px; }
  .term-out { overflow-x: auto; max-height: 38vh; }
  .term-out .t { white-space: pre; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cur, .dot, .cls-tag i { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- portfolio logos (white marks, glitch in on decode) ---------- */
@font-face { font-family: "HX25 Sans"; font-weight: 100 1000; font-stretch: 25% 151%; font-display: swap; src: url("fonts/hx25-sans-latin.woff2") format("woff2"); }
.tx-logo { display: inline-flex; align-items: center; height: 34px; color: #fff; opacity: 0; }
.tx-row.lit .tx-logo { opacity: 1; animation: lg-in .9s both; }
.tx-row.lit.reglitch .tx-logo { animation: lg-in .42s both; }
.lg { display: block; flex: none; }
.lg-lux { height: 13.5px; width: auto; margin-left: 1px; }
.lg-cq { height: 31px; width: auto; }
.lg-hp { height: 16px; width: auto; }
.lg-sp { display: inline-flex; align-items: center; gap: 10px; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Ubuntu Sans", Roboto, Arial, sans-serif; font-size: 14.3px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; line-height: 1; }
.lg-sp svg { width: 22px; height: 22px; }
.lg-sp b { font-weight: 300; }
.lg-hx { font-family: "HX25 Sans", Helvetica, Arial, sans-serif; font-stretch: 150%; font-weight: 500; font-size: 26px; letter-spacing: -.01em; line-height: 1; }
@keyframes lg-in {
  0%   { opacity: 0; clip-path: inset(0 100% 0 0); transform: none; filter: none; animation-timing-function: steps(1, end); }
  8%   { opacity: 1; clip-path: inset(42% 58% 36% 0); transform: translateX(-7px); animation-timing-function: steps(1, end); }
  16%  { clip-path: inset(8% 34% 70% 0); transform: translateX(5px); filter: drop-shadow(-3px 0 0 rgba(200,255,0,.85)); animation-timing-function: steps(1, end); }
  26%  { clip-path: inset(62% 12% 6% 0); transform: translateX(-3px); filter: drop-shadow(3px 0 0 rgba(255,42,42,.7)); animation-timing-function: steps(1, end); }
  38%  { clip-path: inset(0 22% 0 0); transform: translateX(2px); filter: drop-shadow(-2px 0 0 rgba(200,255,0,.8)) drop-shadow(2px 0 0 rgba(255,42,42,.55)); animation-timing-function: steps(1, end); }
  52%  { clip-path: inset(28% 0 44% 0); transform: translateX(-1px); filter: none; animation-timing-function: steps(1, end); }
  64%  { clip-path: inset(0 0 0 0); transform: translateX(1px); filter: drop-shadow(-1px 0 0 rgba(200,255,0,.6)); animation-timing-function: steps(1, end); }
  78%  { clip-path: inset(0 0 0 0); transform: none; filter: none; opacity: .75; animation-timing-function: steps(1, end); }
  100% { opacity: 1; clip-path: inset(0); transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) { .tx-logo { opacity: 1; } .tx-row.lit .tx-logo { animation: none; } }

/* companies not public yet: no outbound link */
.tx-row.is-soon { cursor: default; }
.tx-row.is-soon .arr { display: none; }
