@font-face { font-family: 'Big Shoulders Display'; src: url(/assets/fonts/big-shoulders-display-900.woff2) format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Big Shoulders Display'; src: url(/assets/fonts/big-shoulders-display-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Big Shoulders Stencil'; src: url(/assets/fonts/big-shoulders-stencil-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/assets/fonts/jetbrains-mono-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url(/assets/fonts/archivo-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --graphite: #1b1b19; --concrete: #3a3a36; --well: #141413; --line: #4a4a45;
  --yellow: #f2c230; --cream: #ede6d6; --muted: #a39d8f; --black: #0e0e0d; --rust: #d0603a;
  --display: 'Big Shoulders Display', Impact, 'Arial Narrow', sans-serif;
  --stencil: 'Big Shoulders Stencil', 'Big Shoulders Display', Impact, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --body: 'Archivo', system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { background: var(--graphite); color: var(--cream); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font: 500 16px/1.55 var(--body); background: var(--graphite); overflow-x: hidden;
  background-image: radial-gradient(rgba(237,230,214,.035) 1px, transparent 1px); background-size: 6px 6px; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.stencil { font-family: var(--stencil); font-weight: 800; text-transform: uppercase; letter-spacing: .18em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--black); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* loader: a coin on a cable drops in, then the page shows (under 1.2s) */
.loader { position: fixed; inset: 0; z-index: 90; background: var(--graphite); display: none; place-items: center; align-content: center; gap: 22px; }
.js .loader { display: grid; }
.loader.done { opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.loader-rig { position: relative; height: 150px; width: 64px; }
.loader-cable { position: absolute; left: 31px; top: 0; width: 2px; height: 80px; background: var(--cream); transform-origin: top; animation: cable .7s cubic-bezier(.3,1.4,.5,1) both; }
.loader-coin { position: absolute; left: 0; top: 76px; animation: drop .7s cubic-bezier(.3,1.4,.5,1) both; }
.loader-bar { width: 180px; height: 10px; border: 2px solid var(--cream); }
.loader-bar i { display: block; height: 100%; width: 100%; background: repeating-linear-gradient(-45deg, var(--yellow) 0 6px, var(--black) 6px 12px); transform-origin: left; animation: fill .9s linear both; }
@keyframes cable { from { transform: scaleY(0); } }
@keyframes drop { from { transform: translateY(-80px); } }
@keyframes fill { from { transform: scaleX(0); } }

/* crosshair cursor on fine pointers */
.cross { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; display: none; width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.cross i, .cross b { position: absolute; background: var(--yellow); }
.cross i { left: 13px; top: 0; width: 2px; height: 28px; }
.cross b { top: 13px; left: 0; height: 2px; width: 28px; }
.has-cross, .has-cross a, .has-cross button, .has-cross input { cursor: none; }
.has-cross .cross { display: block; }
.cross.hot i, .cross.hot b { background: var(--cream); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border: 2px solid transparent; border-radius: 0;
  font: 800 15px/1 var(--stencil); text-transform: uppercase; letter-spacing: .14em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.btn-y { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.btn-y:hover { background: var(--cream); border-color: var(--cream); }
.btn-o { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-o:hover { background: var(--cream); color: var(--black); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 17px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.mag { will-change: transform; }

/* header */
.top { position: relative; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 18px var(--pad); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { color: var(--yellow); font-size: 26px; letter-spacing: .2em; }
.nav { display: flex; gap: 26px; }
.nav a { font: 700 18px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--cream); }
.nav a:hover { color: var(--yellow); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.ca { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; background: var(--well); color: var(--cream); border: 1px solid var(--line); border-radius: 0; cursor: pointer; }
.ca-k { font: 800 12px var(--stencil); letter-spacing: .18em; color: var(--yellow); }
.ca-v { font-size: 13px; }
.icon { display: inline-grid; place-items: center; width: 38px; height: 38px; color: var(--cream); }
.icon:hover { color: var(--yellow); }
.pump img { width: 24px; height: 24px; }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); min-height: min(78vh, 720px); }
.hero-copy { position: relative; z-index: 2; padding: clamp(32px, 7vh, 90px) 0 48px var(--pad); align-self: center; }
.kicker { color: var(--yellow); font-size: 14px; margin: 0 0 18px; }
.hero h1 { font: 900 clamp(48px, 5.6vw, 84px)/.95 var(--display); margin: 0 0 24px; letter-spacing: -.005em; max-width: 12ch; }
.sub { font-size: 15px; line-height: 1.7; max-width: 44ch; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-proof { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 0; font-size: 12px; border: 1px solid var(--line); width: max-content; max-width: 100%; }
.hero-proof li { padding: 8px 14px; border-right: 1px solid var(--line); display: grid; gap: 2px; }
.hero-proof li:last-child { border-right: 0; }
.hero-proof span { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }
.hero-proof b { font-weight: 500; color: var(--cream); }
.hero-proof b.down { color: var(--rust); }
.yard { position: relative; margin-left: -6vw; min-height: 420px; overflow: hidden; }
.yard canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.yard-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.yard.live .yard-still { opacity: 0; transition: opacity .4s; }
.yard-station { position: absolute; right: var(--pad); bottom: 22px; z-index: 3; background: var(--black); color: var(--yellow); padding: 8px 14px; font-size: 13px; }

.hazard { height: 28px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 20px, var(--black) 20px 40px); border-block: 2px solid var(--black); }

/* panels */
.panel { position: relative; background: var(--concrete); padding: 10px; }
.panel .rv { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--graphite); box-shadow: inset 1px 1px 0 rgba(237,230,214,.18); }
.panel .rv:nth-of-type(1) { left: 3px; top: 2px; } .panel .rv:nth-of-type(2) { right: 3px; top: 2px; }
.panel .rv:nth-of-type(3) { left: 3px; bottom: 2px; } .panel .rv:nth-of-type(4) { right: 3px; bottom: 2px; }
.well { background: var(--well); box-shadow: inset 0 2px 6px rgba(0,0,0,.5); }

/* stations */
.stations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 56px var(--pad); }
.station .well { position: relative; padding: 24px 26px 28px; min-height: 260px; }
.st-num { display: block; color: var(--yellow); font-size: clamp(72px, 8vw, 108px); line-height: .9; letter-spacing: .02em; }
.station h2 { font: 900 40px/1 var(--display); text-transform: uppercase; margin: 10px 0 12px; }
.station p { font-size: 13px; line-height: 1.65; margin: 0; color: var(--cream); }
.st-icon { position: absolute; right: 22px; top: 22px; width: 46px; height: 46px; fill: none; stroke: var(--cream); stroke-width: 2.4; stroke-linecap: square; }
.station.on .well { box-shadow: inset 0 0 0 2px var(--yellow); }

/* manifest */
.manifest-wrap { padding: 20px var(--pad) 64px; }
.clipboard { padding: 16px; }
.clip { position: absolute; left: 34px; top: -14px; width: 120px; height: 26px; background: var(--line); border: 3px solid var(--black); }
.manifest-head { display: flex; align-items: end; gap: 22px; padding: 18px 10px 18px; flex-wrap: wrap; }
.manifest-head h2 { font: 900 52px/.9 var(--display); text-transform: uppercase; margin: 0; }
.manifest-head p { margin: 0 0 4px; font-size: 13px; }
.manifest-tools { margin-left: auto; }
.table-well { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
th { font: 800 12px/1 var(--stencil); text-transform: uppercase; letter-spacing: .18em; color: var(--yellow); text-align: left; padding: 14px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); white-space: nowrap; }
th:last-child { border-right: 0; }
td { padding: 10px 14px; border-bottom: 1px solid #262624; border-right: 1px solid #262624; vertical-align: middle; white-space: nowrap; }
td:last-child { border-right: 0; }
.num { text-align: right; }
.c-tick { width: 46px; text-align: center; }
input[type=checkbox] { appearance: none; width: 18px; height: 18px; border: 2px solid var(--cream); background: transparent; margin: 0; display: inline-grid; place-items: center; cursor: pointer; vertical-align: middle; }
input[type=checkbox]:checked { background: var(--yellow); border-color: var(--yellow); }
input[type=checkbox]:checked::after { content: ''; width: 8px; height: 4px; border: solid var(--black); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
input[type=checkbox]:disabled { opacity: .25; cursor: not-allowed; }
.tok { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.tok img, .tok .ph { width: 30px; height: 30px; border-radius: 50%; background: var(--concrete); flex: none; object-fit: cover; border: 2px solid var(--line); }
.tok b { font: 700 16px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; display: block; }
.tok small { color: var(--muted); font-size: 11px; }
.note { display: block; color: var(--muted); font-size: 11px; white-space: normal; max-width: 34ch; }
.note a { color: var(--yellow); }
tr.off td { color: var(--muted); }
tr.warn .imp { color: var(--rust); }
tr.picked td { background: rgba(242,194,48,.06); }
.empty { display: grid; justify-items: center; gap: 10px; padding: 48px 16px; color: var(--muted); }
.empty svg { width: 42px; height: 42px; fill: none; stroke: var(--muted); stroke-width: 2; }
.empty p { margin: 0; font-size: 14px; color: var(--cream); }
.empty[hidden] { display: none; }
.mfoot { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 12px; padding: 14px 16px; background: var(--black); font-size: 13px; }
.mfoot b { color: var(--yellow); font-weight: 500; }
.mfoot .grow { margin-left: auto; font-size: 15px; }
.mfoot .grow b { color: var(--cream); font-size: 18px; }

/* yard log */
.yardlog { padding: 56px var(--pad) 40px; }
.strip { display: flex; align-items: baseline; gap: 18px; background: var(--black); padding: 14px 18px; flex-wrap: wrap; }
.strip h2 { margin: 0; font-size: 26px; color: var(--cream); }
.strip span { font-size: 12px; }
.figs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.fig { padding: 34px 18px 30px; display: grid; gap: 10px; border-right: 1px solid var(--line); }
.fig:last-child { border-right: 0; }
.fig b { font: 900 clamp(46px, 5.6vw, 76px)/.9 var(--display); color: var(--cream); font-variant-numeric: tabular-nums; }
.fig span { color: var(--yellow); font-size: 14px; }
.recent { margin-top: 36px; }
.recent h3 { margin: 6px 8px 14px; font-size: 18px; color: var(--cream); }
.rtable a { color: var(--yellow); }

/* docs */
.docs { padding: 30px var(--pad) 80px; }
.docs h2 { font: 900 52px/.9 var(--display); text-transform: uppercase; margin: 0 0 26px; }
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.docs-grid > div { background: var(--graphite); padding: 22px 24px; }
.docs h3 { margin: 0 0 10px; font-size: 15px; color: var(--yellow); }
.docs p { margin: 0; font-size: 14px; color: var(--cream); }
.docs a { color: var(--yellow); }

/* footer */
.foot { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; background: var(--black); padding: 26px var(--pad); }
.foot .brand span { font-size: 22px; }
.foot p { margin: 0; font-size: 13px; }
.foot-nav { display: flex; gap: 12px; margin-left: auto; font: 700 16px var(--display); text-transform: uppercase; letter-spacing: .06em; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: var(--yellow); }
.foot-nav span { color: var(--line); }
.foot-icons { display: flex; gap: 6px; }

/* confirm dialog */
.confirm { padding: 0; border: 0; background: transparent; color: var(--cream); width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 24px); }
.confirm::backdrop { background: rgba(14,14,13,.82); }
.confirm .well { padding: 24px; }
.confirm h2 { font: 900 40px/1 var(--display); text-transform: uppercase; margin: 0 0 8px; }
.confirm p { margin: 0 0 16px; font-size: 13px; }
.c-scroll { max-height: 38vh; overflow: auto; border: 1px solid var(--line); }
.ctable td { padding: 8px 12px; }
.ctable .tok { min-width: 150px; }
.ctable .tok img, .ctable .tok .ph { width: 22px; height: 22px; }
.prog { position: relative; width: 150px; height: 14px; border: 1px solid var(--line); background: var(--black); overflow: hidden; }
.prog i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: repeating-linear-gradient(-45deg, var(--yellow) 0 7px, var(--black) 7px 14px); background-size: 19.8px 19.8px; transition: transform .4s; }
.prog[data-s=signed] i { transform: scaleX(.25); }
.prog[data-s=sent] i { transform: scaleX(.6); animation: slide .6s linear infinite; }
.prog[data-s=confirmed] i { transform: scaleX(1); background: var(--yellow); }
.prog[data-s=failed] i { transform: scaleX(1); background: var(--rust); }
.prog[data-s=kept] i { transform: scaleX(1); background: var(--line); }
.prog-t { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; text-transform: uppercase; letter-spacing: .1em; }
@keyframes slide { to { background-position: 19.8px 0; } }
.c-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 16px 0 12px; }
.c-sum div { background: var(--well); padding: 10px 12px; }
.c-sum dt { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.c-sum dd { margin: 4px 0 0; font-size: 15px; }
.c-sum .big dd { color: var(--yellow); font-size: 18px; }
.c-msg { min-height: 1.4em; color: var(--cream); }
.c-msg.err { color: var(--rust); }
.c-actions { display: flex; gap: 12px; justify-content: flex-end; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); z-index: 80; background: var(--black); color: var(--cream); border: 2px solid var(--yellow); padding: 10px 16px; font-size: 13px; transition: transform .25s; max-width: calc(100vw - 32px); }
.toast.on { transform: translate(-50%, 0); }
.toast.err { border-color: var(--rust); }

@media (max-width: 1100px) {
  .nav { display: none; }
  .top { gap: 16px; }
}
@media (max-width: 860px) {
  .top { flex-wrap: wrap; }
  .top-right { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .top-right .connect { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-right: var(--pad); }
  .yard { margin-left: 0; min-height: 0; width: 100%; aspect-ratio: 4 / 3; }
  .table-well { max-width: 100%; }
  .stations, .docs-grid { grid-template-columns: 1fr; }
  .station .well { min-height: 0; }
  .figs { grid-template-columns: 1fr; }
  .fig { border-right: 0; border-bottom: 1px solid var(--line); }
  .c-sum { grid-template-columns: 1fr 1fr; }
  .mfoot .grow { margin-left: 0; width: 100%; }
  .manifest-head h2, .docs h2 { font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
