/* Sellside. The only dark pad of the batch: the night sea in an ordered dither, in two families only: the navy water
   (abyss / sea / mist / foam) and one warm signal, sodium amber (lamps, buoys, the sweep, the beam). Red appears only
   on a falling tick. The hero keeps zmr's tiny 280 px column on the sea; everything below is its own dithered night
   scene (harbour, lighthouse, radio room, the deep) with a stencilled display voice, like the names painted on hulls.
   Type: Big Shoulders Stencil (section titles, hull paint), Handjet (figures, names: dot matrix), Fragment Mono. */
@font-face { font-family: "Handjet"; font-weight: 300; font-display: swap; src: url(/fonts/handjet-300.woff2) format("woff2"); }
@font-face { font-family: "Handjet"; font-weight: 400; font-display: swap; src: url(/fonts/handjet-400.woff2) format("woff2"); }
@font-face { font-family: "Handjet"; font-weight: 500; font-display: swap; src: url(/fonts/handjet-500.woff2) format("woff2"); }
@font-face { font-family: "Fragment Mono"; font-weight: 400; font-display: swap; src: url(/fonts/fragment-400.woff2) format("woff2"); }
@font-face { font-family: "Hull"; font-weight: 100 900; font-display: swap; src: url(/fonts/stencil.woff2) format("woff2"); }

:root {
  --name: "sellside";
  --abyss: #0a1422; --sea: #20344a; --deep: #20344a; --mist: #93a4b0; --spray: #93a4b0; --foam: #d8dccf;
  --signal: #ff9e3d; --ember: #96502a; --red: #e0523a;
  --paper: #d8dccf; --paper2: #e6e8de; --pink: #0a1422;
  /* ink on the dark chart (inner pages): foam; the receipts flip it back to navy on paper */
  --ink: #d8dccf; --ink2: #93a4b0; --zebra: rgba(216, 220, 207, .04); --rule: rgba(216, 220, 207, .22);
  --buy: #ff9e3d; --sell: #e0523a;
  --mono: "Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --disp: "Handjet", var(--mono);
  --hull: "Hull", "Arial Narrow", Impact, sans-serif;
  --col: 280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--abyss); overflow-y: scroll; scrollbar-gutter: stable; }
body {
  margin: 0; min-height: 100vh; color: var(--foam); font: 10px/14px var(--mono); font-variant-numeric: tabular-nums;
  background: var(--abyss); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: underline; text-decoration-color: rgba(216, 220, 207, .35); text-underline-offset: 3px; cursor: pointer; }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 1px dashed var(--signal); outline-offset: 3px; }
code { font: inherit; }
::selection { background: var(--signal); color: var(--abyss); }

.sea, .plate { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; image-rendering: pixelated; }
body[data-scene="sea"] .plate { display: none; }
body:not([data-scene="sea"]) .sea, body:not([data-scene="sea"]) .buoys { display: none; }
#view, #docs { position: relative; z-index: 2; }

/* ------------------------------------------------------------------ top bar */
.top { position: fixed; z-index: 20; top: 0; right: 0; left: 0; display: flex; justify-content: flex-end; gap: 14px; align-items: center; padding: 12px 18px; }
.top::before { content: ""; position: absolute; inset: 0 0 -20px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(10, 20, 34, .9), rgba(10, 20, 34, 0)); opacity: 0; transition: opacity 200ms; }
body.below .top::before, body:not([data-scene="sea"]) .top::before { opacity: 1; }
.top .logc { color: var(--mist); text-decoration: none; font-size: 10px; padding: 9px 0; }
.top .logc:hover { color: var(--foam); }
.top .tm { position: fixed; left: 18px; top: 12px; font: 800 26px/1 var(--hull); text-transform: uppercase; letter-spacing: .04em; color: var(--foam); text-decoration: none; }
.top .tm::first-letter { color: var(--signal); }
.top .tm { transition: opacity 200ms; }
body[data-view="home"]:not(.below) .top .tm { opacity: 0; pointer-events: none; }

/* ------------------------------------------------------------------ bracket keys */
.key { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 1px; background: transparent; border: 0; color: inherit; font: 10px/1 var(--mono); text-decoration: none; white-space: nowrap; transition: background-color 140ms steps(2), color 140ms steps(2); user-select: none; }
.key .kb { width: 4px; height: 17px; border: 1px solid currentColor; border-right: 0; }
.key .kb.r { border-left: 0; border-right: 1px solid currentColor; }
.key .kl { padding: 0 2px; }
.key:hover { background: var(--foam); color: var(--abyss); }
.key:active { transform: translateY(1px); }
.key.pri { color: var(--signal); }
.key.pri .kb { border-width: 2px; border-right-width: 0; width: 5px; }
.key.pri .kb.r { border-right-width: 2px; border-left-width: 0; }
.key.pri:hover { background: var(--signal); color: var(--abyss); }
.key:disabled, .key[aria-disabled="true"] { opacity: .45; background: transparent; color: inherit; }
.key:disabled .kb { border-style: dashed; }
.key.busy .kl::after { content: " ..."; }
.mini { background: none; border: 0; padding: 9px 4px; margin: -9px 0; color: var(--mist); text-decoration: underline; text-underline-offset: 3px; font-size: 10px; }
.mini:hover { color: var(--foam); }

/* ------------------------------------------------------------------ hero: the column on the sea (zmr signature) */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-start; justify-content: center; }
.col { width: var(--col); margin: 13vh auto 10vh; position: relative; animation: rise 900ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.name { font: 300 76px/.8 var(--disp); letter-spacing: .01em; margin: 0 0 14px; color: var(--foam); }
.car { display: grid; grid-template-columns: 22px 1fr auto; align-items: baseline; gap: 6px; color: var(--foam); }
.f { color: var(--mist); }
.hr { height: 1px; margin: 12px 0 14px; background: repeating-linear-gradient(90deg, var(--sea) 0 2px, transparent 2px 4px); }
.big { font: 400 38px/1 var(--disp); letter-spacing: .01em; margin: 4px 0 4px; display: flex; align-items: baseline; gap: 6px; color: var(--signal); }
.big small { font: 10px var(--mono); color: var(--mist); }
.big span { display: inline-block; }
.sub { color: var(--mist); min-height: 28px; }
.law { margin: 16px 0 14px; text-transform: uppercase; font-size: 10px; line-height: 13px; letter-spacing: 0; }
.law span { display: block; text-align: justify; text-align-last: justify; white-space: nowrap; }
.law span.last { text-align-last: left; }
.law span.one { white-space: normal; text-align: justify; text-align-last: left; font-size: 11px; line-height: 15px; }
.keys { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.down { display: flex; align-items: center; gap: 10px; margin-top: 18px; min-height: 36px; color: var(--mist); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: 9px; padding: 8px 0; }
.down i { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--signal) 0 2px, transparent 2px 5px); animation: tow 2.4s linear infinite; background-size: 10px 1px; }
.down:hover { color: var(--signal); }
@keyframes tow { to { background-position: 10px 0; } }
.hero .col .tape, .hero .col .mk { display: none; }

/* ------------------------------------------------------------------ scenes below the hero: full-bleed dithered water, the content set into
   the scene, never a picture | text split. each scene is its own construction:
   i tides: four diagrams riding a swell across the width · ii harbour: a hull word painted across, the board floating centred
   iii beam: the paid figure as a chart annotation up in the beam, receipts strewn below · iv radio: a screen in the middle,
   the tape running the full width · v deep: one sounding line down the middle, the seabed marked on it */
.scene { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--abyss); border-top: 1px solid rgba(255, 158, 61, .18); }
.scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; z-index: 0; }
.scene::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.scene > :not(.scene-bg) { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 18px; color: var(--signal); font: 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .16em; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--signal); box-shadow: 0 0 0 3px rgba(255, 158, 61, .18); }
.scene .keys { margin: 0; justify-content: center; }

/* i · the four tides ride one swell across the whole width */
.s-tides { display: flex; flex-direction: column; justify-content: center; padding: 110px 4vw 90px; }
.s-tides::after { background: linear-gradient(180deg, rgba(10, 20, 34, .1), rgba(10, 20, 34, .35)); }
.s-tides .scene-bg { opacity: .9; }
.s-tides .eyebrow { justify-content: center; }
.tides { list-style: none; margin: 40px 0 0; padding: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 2vw; }
.tides::before { content: ""; position: absolute; left: -4vw; right: -4vw; top: 38%; height: 1px; z-index: -1; background: repeating-linear-gradient(90deg, var(--signal) 0 2px, transparent 2px 6px); opacity: .55; }
.tides li { flex: 1 1 0; max-width: 300px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tides li:nth-child(1) { margin-top: 0; } .tides li:nth-child(2) { margin-top: 13vh; } .tides li:nth-child(3) { margin-top: 3vh; } .tides li:nth-child(4) { margin-top: 17vh; }
.tides canvas { width: 100%; max-width: 280px; aspect-ratio: 150 / 96; height: auto; image-rendering: pixelated; background: var(--abyss); box-shadow: 0 0 0 1px rgba(216, 220, 207, .12), 0 0 0 8px rgba(10, 20, 34, .7); }
.tn { display: block; margin: 16px 0 4px; font: 800 44px/.9 var(--hull); color: var(--signal); letter-spacing: .02em; }
.tides h3 { margin: 0 0 8px; font: 800 24px/1 var(--hull); text-transform: uppercase; letter-spacing: .04em; }
.tv { font: 11px/1.4 var(--mono); color: var(--mist); }
.tv b { font: 400 26px/1 var(--disp); color: var(--foam); margin-right: 2px; }
.anytime { padding: 8px 14px; background: rgba(10, 20, 34, .9); border: 1px dashed rgba(255, 158, 61, .4); margin: 7vh auto 0; display: flex; align-items: baseline; gap: 10px; font: 11px/1 var(--mono); color: var(--mist); text-transform: uppercase; letter-spacing: .1em; }
.anytime b { font: 400 30px/1 var(--disp); color: var(--signal); letter-spacing: 0; }

/* ii · the harbour: a hull word painted across the scene, the board floating centred on the water */
.s-harbour { display: flex; flex-direction: column; align-items: center; padding: 70px 16px 90px; }
.s-harbour::after { background: radial-gradient(ellipse 55% 60% at 50% 62%, rgba(10, 20, 34, .82), rgba(10, 20, 34, .2) 70%, rgba(10, 20, 34, 0)); }
.hull { margin: 0 0 3vh; width: 100%; text-align: center; font: 800 clamp(60px, 14vw, 260px)/.8 var(--hull); text-transform: uppercase; letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 1px rgba(216, 220, 207, .5); white-space: nowrap; }
.board { width: min(640px, 100%); padding: 0; }
.bh { display: flex; justify-content: space-between; gap: 12px; padding: 0 0 10px; border-bottom: 1px solid rgba(255, 158, 61, .45); color: var(--mist); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; }
.bh span:first-child { color: var(--signal); }
.board .keys { margin-top: 26px; }
.mk .mr { display: grid; grid-template-columns: 30px minmax(0, 1fr) 64px 56px 16px 66px; gap: 10px; align-items: center; min-height: 40px; color: var(--foam); text-decoration: none; border-bottom: 1px dashed rgba(216, 220, 207, .12); font-size: 11px; transition: background-color 120ms steps(2); }
.mk .mr:hover, .mk .mr:focus-visible { background: rgba(255, 158, 61, .1); }
.mk .rk { color: var(--mist); }
.mk .sym { font: 400 26px/1 var(--disp); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk .mr.sunk { color: var(--mist); }
.mk .mr.sunk .sym { text-decoration: line-through; text-decoration-color: rgba(147, 164, 176, .5); }
.mk .rt, .mk .dt { text-align: right; }
.mk .dt.near, .dcd.near { color: var(--signal); }
canvas.tide { width: 60px; height: 6px; image-rendering: pixelated; box-shadow: inset 0 0 0 1px rgba(95, 118, 136, .6); }
.st { color: var(--mist); }
.inv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; color: var(--mist); border-top: 1px dashed var(--sea); border-bottom: 1px dashed var(--sea); flex-wrap: wrap; }

/* iii · the beam: the paid figure hangs in the beam like a chart annotation, the receipts are strewn below */
.s-beam { display: grid; grid-template-rows: auto 1fr auto; padding: 16vh 5vw 12vh; gap: 40px; }
.s-beam::after { background: linear-gradient(180deg, rgba(10, 20, 34, .15), rgba(10, 20, 34, .1) 45%, rgba(10, 20, 34, .75)); }
.paid { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; text-align: right; padding-right: 20px; border-right: 1px dashed var(--signal); }
.paid b { font: 400 clamp(72px, 10vw, 170px)/.82 var(--disp); color: var(--signal); }
.paid span:last-child { background: rgba(10, 20, 34, .85); padding: 4px 8px; margin-right: -8px; font: 11px var(--mono); color: var(--mist); text-transform: uppercase; letter-spacing: .1em; margin-top: 8px; }
.paid .eyebrow { margin-bottom: 14px; }
.slips { display: flex; gap: 3vw; justify-content: center; align-items: flex-end; flex-wrap: wrap; align-self: end; }
.slip, .receipt, .ptape {
  --ink: #0a1422; --ink2: #4a5a68; --rule: rgba(10, 20, 34, .3);
  background: var(--paper); color: var(--ink); position: relative;
  --z: 6px; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
}
.slip { width: 230px; padding: 12px 14px 20px; font: 10px/15px var(--mono); text-decoration: none; transform: rotate(-2deg) translateY(-30px); transition: transform 200ms var(--ease); }
.slip:nth-child(2) { transform: rotate(1.6deg) translateY(20px); }
.slip:nth-child(3) { transform: rotate(-.6deg) translateY(-60px); }
.slip:hover { transform: translateY(-70px); }
.slip .rh { text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px dashed rgba(10, 20, 34, .35); font-weight: 400; }
.slip .rf { margin-top: 8px; color: #8a4a18; }
.slip.demo { opacity: .82; }
.slip .lead i { border-bottom-color: rgba(10, 20, 34, .35); }

/* iv · the night bulletin: the screen in the middle, the tape runs the whole width under it */
.s-radio { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100px 0 70px; }
.s-radio::after { background: radial-gradient(ellipse 50% 50% at 50% 45%, rgba(10, 20, 34, .6), rgba(10, 20, 34, .15)); }
.s-radio .eyebrow { justify-content: center; }
.filmk { display: block; width: min(760px, calc(100vw - 32px)); padding: 0; margin: 0; background: none; border: 0; color: var(--foam); text-align: center; }
.filmk img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid rgba(216, 220, 207, .3); outline: 8px solid rgba(10, 20, 34, .85); image-rendering: pixelated; background: var(--abyss); }
.filmk .fk { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; min-height: 28px; font-size: 11px; }
.filmk .play { width: 28px; height: 28px; border: 1px solid var(--signal); display: grid; place-items: center; }
.filmk .play::before { content: ""; border-left: 9px solid var(--signal); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.filmk:hover .fk { color: var(--signal); }
.filmk:hover img { border-color: var(--signal); }
.ptape { width: 100%; margin-top: 8vh; padding: 0; display: flex; align-items: stretch; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); transform: rotate(-1deg); -webkit-mask: none; mask: none; }
.pt-h { flex: none; display: flex; flex-direction: column; justify-content: center; gap: 2px; text-transform: uppercase; letter-spacing: .14em; font-size: 10px; padding: 0 16px; border-right: 2px solid var(--ink); background: var(--paper2); position: relative; z-index: 1; }
.ptape .tape { display: flex; width: max-content; animation: run 70s linear infinite; }
.ptape:hover .tape { animation-play-state: paused; }
.ptape .run { display: flex; }
.ptape .tape .tl { grid-template-columns: auto auto auto auto; gap: 8px; padding: 0 18px; min-height: 48px; border-bottom: 0; border-right: 1px dotted rgba(10, 20, 34, .25); white-space: nowrap; }
@keyframes run { to { transform: translateX(-50%); } }
.tape .tl { display: grid; grid-template-columns: 70px 1fr 56px 30px; gap: 8px; min-height: 34px; align-items: center; color: var(--ink); text-decoration: none; font-size: 11px; text-transform: uppercase; border-bottom: 1px dotted rgba(10, 20, 34, .18); }
.tape .tl span:nth-child(4) { text-align: right; color: var(--ink2); }
.tape .tl:hover { background: rgba(10, 20, 34, .06); }
.tape .t-buy span:first-child { color: #b85c12; }
.tape .t-sell span:first-child { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(224, 82, 58, .7); text-underline-offset: 3px; }
.tape .t-sweep span:first-child, .tape .t-rel span:first-child, .tape .t-red span:first-child { color: var(--ink); font-weight: 700; }
.tape .t-dead { color: var(--ink2); }
.tape .t-none { grid-template-columns: 70px 1fr; }
.tape .tl.new { animation: tl-new 1.4s var(--ease); }
@keyframes tl-new { 0% { background: rgba(255, 158, 61, .45); } 100% { background: transparent; } }

/* v · the deep: one sounding line down the middle; live coins above the seabed mark, the sunk ones under it */
.s-deep { display: flex; flex-direction: column; align-items: center; padding: 14vh 16px 60px; }
.s-deep::after { background: linear-gradient(180deg, rgba(10, 20, 34, .45) 0%, rgba(10, 20, 34, .2) 40%, rgba(10, 20, 34, .92) 100%); }
.sound { width: min(560px, 100%); position: relative; display: flex; flex-direction: column; align-items: stretch; }
.sound::before { content: ""; position: absolute; left: 50%; top: 40px; bottom: 0; width: 1px; background: repeating-linear-gradient(180deg, var(--signal) 0 3px, transparent 3px 7px); opacity: .7; }
.sound .eyebrow { justify-content: center; }
.dh { position: relative; align-self: center; margin: 18px 0 8px; padding: 4px 10px; background: var(--abyss); font: 800 20px/1 var(--hull); text-transform: uppercase; letter-spacing: .06em; border: 1px solid rgba(255, 158, 61, .5); }
.dh.bed { margin-top: 34px; border-color: var(--mist); color: var(--mist); }
.dh.bed::before { content: ""; position: absolute; left: -40vw; right: -40vw; top: 50%; height: 1px; z-index: -1; background: repeating-linear-gradient(90deg, var(--mist) 0 1px, transparent 1px 4px); opacity: .5; }
.dr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; padding: 9px 0; text-decoration: none; }
.dr:hover { background: rgba(255, 158, 61, .08); }
.dsym { font: 400 30px/1 var(--disp); text-align: right; }
.dcd { font: 400 30px/1 var(--disp); text-align: left; }
.dnote { grid-column: 1 / -1; color: var(--mist); font-size: 10px; text-align: center; margin-top: 2px; }
.dr.sunk .dsym { color: var(--mist); }
.dr.none { grid-template-columns: 1fr; justify-items: center; gap: 8px; }
.dr.none .dsym { text-align: center; }
.foot { margin-top: 16vh; width: min(520px, 100%); text-align: center; }
.foot .navl { margin: 0 0 8px; justify-content: center; }
.foot table.fv { text-align: left; }

.navl { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 22px 0 0; font-size: 11px; }
.navl a { color: var(--mist); padding: 6px 0; }
.navl a:hover, .navl a.on { color: var(--signal); }
.eot { text-align: center; color: var(--mist); margin: 22px 0 12px; letter-spacing: .04em; opacity: .7; }

/* tick flash (21st.dev Value Flash / zmr mc-shift): amber up, red only on a falling tick */
.fl-up { animation: fl-up 1.1s var(--ease); }
.fl-down { animation: fl-down 1.1s var(--ease); }
@keyframes fl-up { 0% { color: var(--foam); transform: translateY(-3px); } 55% { color: var(--foam); } 100% { transform: none; } }
@keyframes fl-down { 0% { color: var(--red); transform: translateY(3px); } 55% { color: var(--red); } 100% { transform: none; } }

/* field / value tables */
table.fv { width: 100%; border-collapse: collapse; margin: 6px 0; }
table.fv th { text-align: left; font-weight: 400; color: var(--ink2); padding: 5px 8px 5px 0; width: 36%; vertical-align: top; }
table.fv td { padding: 5px 0; vertical-align: top; overflow-wrap: anywhere; }
table.fv tr { border-top: 1px dashed rgba(216, 220, 207, .12); }
table.fv tr:last-child { border-bottom: 1px dashed rgba(216, 220, 207, .12); }
.foot table.fv th { padding-left: 4px; color: var(--mist); }

/* ------------------------------------------------------------------ buoys on the sea (hero only) */
.buoys { position: fixed; inset: 0; z-index: 1; pointer-events: none; transition: opacity 300ms; }
body.below .buoys { opacity: 0; visibility: hidden; }
.buoy { position: absolute; transform: translate(-50%, -34px); pointer-events: auto; display: flex; gap: 6px; padding: 72px 8px 6px; font-size: 9px; color: var(--mist); text-decoration: none; white-space: nowrap; transition: color 120ms steps(2); }
.buoy .bl { color: var(--foam); }
.buoy .bv { display: none; }
.buoy:hover .bv, .buoy.hot .bv, .buoy.demo .bv { display: inline; }
.buoy:hover, .buoy.hot { color: var(--foam); }
.buoy:hover .bl, .buoy.hot .bl, .buoy:hover .bv, .buoy.hot .bv { background: var(--signal); color: var(--abyss); }
.buoy.sunk .bl { color: var(--sea); }
.buoy.demo { border: 1px dashed var(--sea); pointer-events: none; }
.buoy.demo .bl { text-transform: uppercase; letter-spacing: .08em; }

/* ------------------------------------------------------------------ inner pages: a scene header on the plate, then the chart */
.pg-h { position: relative; width: min(980px, calc(100vw - 48px)); margin: 0 auto; padding: 17vh 0 5vh; }
.pg-h .back { display: inline-block; color: var(--mist); text-decoration: none; padding: 8px 0; margin-bottom: 18px; font-size: 11px; }
.pg-h .back:hover { color: var(--signal); }
.pg-h .ct, .card .ct { font: 800 clamp(64px, 10vw, 150px)/.84 var(--hull); text-transform: uppercase; margin: 0 0 16px; letter-spacing: .005em; color: var(--foam); text-shadow: 0 2px 30px rgba(10, 20, 34, .6); }
.pg-h .cs { max-width: 46ch; margin: 0 0 0 -10px; padding: 6px 10px; background: rgba(10, 20, 34, .72); display: inline-block; font: 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: rgba(216, 220, 207, .92); }
.card {
  width: min(980px, calc(100vw - 32px)); margin: 0 auto 14vh; padding: 30px 40px 34px; color: var(--ink); font: 11px/17px var(--mono);
  background-color: rgba(10, 20, 34, .92);
  background-image: linear-gradient(rgba(216, 220, 207, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(216, 220, 207, .035) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
  border: 1px solid rgba(216, 220, 207, .16); position: relative; box-shadow: 0 40px 120px rgba(0, 0, 0, .5);
  animation: rise 700ms var(--ease) both;
}
.card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: repeating-linear-gradient(90deg, var(--signal) 0 24px, transparent 24px 48px); }
.card a { text-decoration-color: rgba(216, 220, 207, .4); }
.card a:hover { text-decoration-color: var(--signal); color: var(--signal); }
.card .ch { display: none; }
.card .cs { margin: 0 0 10px; color: var(--ink2); max-width: 60ch; }
.card .f { color: var(--ink2); }
.card .big { font-size: 44px; }
.card .dim, .dim { color: var(--ink2); }
.card .mini { color: var(--ink2); }
.card table.fv th { padding-left: 6px; }
.card table.fv tr:nth-child(odd) { background: var(--zebra); }
.card code { background: rgba(216, 220, 207, .07); padding: 0 3px; }
.card .navl { border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 34px; }
.card .inv { color: var(--ink2); border-color: var(--rule); }
.h2 { display: flex; align-items: baseline; gap: 12px; margin: 42px 0 14px; font: 10px/1 var(--mono); }
.h2 span:first-child { font: 800 34px/.9 var(--hull); text-transform: uppercase; letter-spacing: .03em; color: var(--foam); }
.h2 span:last-child { color: var(--signal); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; }
.h2 i { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, rgba(216, 220, 207, .35) 0 2px, transparent 2px 4px); transform: translateY(-4px); }
.docs h2.dh { font: 800 38px/.95 var(--hull) !important; text-transform: uppercase; color: var(--foam); }
.docs h2.dh::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--signal); margin-right: 12px; transform: translateY(-8px); }
table.grid { width: 100%; border-collapse: collapse; }
table.grid th { text-align: left; font-weight: 400; color: var(--ink2); padding: 6px 6px; border-bottom: 1px solid var(--rule); }
table.grid td { padding: 6px 6px; }
table.grid tbody tr:nth-child(odd) { background: var(--zebra); }

.lead { display: flex; align-items: baseline; gap: 0; }
.lead i { flex: 1; border-bottom: 1px dotted rgba(216, 220, 207, .35); margin: 0 6px; transform: translateY(-3px); min-width: 12px; }
.lead span:last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.lead.tot { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--ink); }
.lead.tot i { border-bottom-color: transparent; }
.lead.tot b { color: var(--signal); font-weight: 400; }

/* coin page */
.coin-h .chead { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.coin-h .eyebrow, .coin-h .csym, .coin-h .cacts, .coin-h .big { justify-content: center; }
canvas.art { width: 200px; height: 200px; image-rendering: pixelated; border: 1px solid rgba(216, 220, 207, .3); outline: 6px solid rgba(10, 20, 34, .85); background: var(--abyss); }
.coin-h .ct { font-size: clamp(56px, 8vw, 120px); margin-bottom: 8px; }
.csym { display: flex; gap: 12px; color: var(--mist); margin-bottom: 12px; font-size: 12px; align-items: center; }
.coin-h .f { color: var(--mist); font-size: 11px; }
.coin-h .big { font-size: 56px; }
.st-a, .st-d, .st-b, .st-x { text-transform: lowercase; }
.coin-h .st, .card .st { color: var(--signal); border: 1px solid rgba(255, 158, 61, .5); padding: 0 6px; }
.cacts { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.tubes { display: flex; gap: 40px; flex-wrap: wrap; }
.tube { display: flex; gap: 16px; align-items: flex-end; margin: 0; }
.tube canvas { width: 42px; height: 126px; image-rendering: pixelated; border: 1px solid var(--foam); border-top: 0; border-radius: 0 0 16px 16px; background: rgba(32, 52, 74, .35); }
.tube figcaption { display: flex; flex-direction: column; gap: 3px; max-width: 200px; }
.tube figcaption b { font: 800 22px/1 var(--hull); text-transform: uppercase; letter-spacing: .04em; font-weight: 800; }
.tube figcaption i { font-style: normal; color: var(--ink2); }
.tube.armed figcaption b::after { content: " \00b7  armed"; color: var(--signal); }
.cranks { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.death canvas { width: 100%; height: 22px; image-rendering: pixelated; border: 1px solid rgba(216, 220, 207, .4); background: rgba(32, 52, 74, .35); display: block; }
.dlab { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.dlab .near { color: var(--signal); }
.desk { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.rel { border-top: 1px solid var(--rule); position: relative; }
.rel:last-child { border-bottom: 1px solid var(--rule); }
.rel summary { display: grid; grid-template-columns: 110px 110px 1fr; gap: 10px; padding: 10px 0 10px 14px; cursor: pointer; list-style: none; }
.rel summary::-webkit-details-marker { display: none; }
.rel summary::before { content: "+"; position: absolute; left: 0; color: var(--signal); }
.rel[open] summary::before { content: "-"; }
.rel summary > span:first-child { color: var(--signal); }
.rel .rs { color: var(--ink2); text-align: right; }
.receipt { max-width: 560px; margin: 2px 0 20px; padding: 16px 18px 24px; box-shadow: inset 0 1px 0 rgba(10, 20, 34, .2); }
.receipt a { text-decoration-color: rgba(10, 20, 34, .4); color: var(--ink); }
.receipt code { background: rgba(10, 20, 34, .06); word-break: break-all; }
.receipt .lead i { border-bottom-color: rgba(10, 20, 34, .35); }
.rel[open] .receipt { animation: print 700ms steps(14) both; }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.receipt .rh { text-align: center; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.receipt .rf { text-align: center; color: var(--ink2); margin-top: 12px; font-size: 10px; }
.receipt .batch { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(10, 20, 34, .35); }
.receipt .vok { color: #2e6b3a; }
.vok::before { content: "[ok] "; }
.warn { color: var(--signal); }

.inp { display: block; margin: 14px 0; }
.inp span { display: block; color: var(--ink2); margin-bottom: 2px; }
.inp input { width: 100%; height: 42px; background: transparent; border: 0; border-bottom: 1px solid var(--foam); font: 15px var(--mono); color: var(--foam); padding: 0; border-radius: 0; }
.inp input:focus { outline: none; border-bottom: 2px solid var(--signal); }
.inp input::placeholder { color: rgba(216, 220, 207, .3); }
.chips { display: flex; gap: 8px; }
.chips button { background: transparent; border: 1px solid rgba(216, 220, 207, .4); color: var(--foam); min-height: 34px; min-width: 56px; font-size: 10px; }
.chips button:hover { background: var(--signal); border-color: var(--signal); color: var(--abyss); }
.quote { margin: 14px 0; padding: 12px 14px; background: rgba(32, 52, 74, .35); border-left: 2px solid var(--signal); min-height: 38px; }
.q-empty { color: var(--ink2); }
.sim { margin-top: 8px; color: var(--ink2); }
.fr { display: flex; gap: 12px; align-items: center; margin-top: 12px; flex-wrap: wrap; }

.seg { display: flex; flex-wrap: wrap; border: 1px solid rgba(216, 220, 207, .5); }
.seg button { flex: 1 1 0; min-width: 72px; min-height: 46px; background: transparent; border: 0; border-right: 1px solid rgba(216, 220, 207, .2); color: var(--foam); padding: 6px 4px; text-align: center; transition: background-color 120ms steps(2), color 120ms steps(2); }
.seg button:last-child { border-right: 0; }
.seg button b { display: block; font-weight: 400; font-size: 12px; }
.seg button i { display: block; font-style: normal; font-size: 9px; color: var(--ink2); }
.seg button:hover { background: rgba(216, 220, 207, .08); }
.seg button[aria-checked="true"] { background: var(--signal); color: var(--abyss); }
.seg button[aria-checked="true"] i { color: rgba(10, 20, 34, .7); }

.lgrid { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lgrid .lfields { width: 100%; }
.drop { position: relative; display: grid; place-items: center; width: 200px; height: 200px; border: 1px dashed var(--signal); cursor: pointer; text-align: center; color: var(--ink2); overflow: hidden; background: rgba(32, 52, 74, .3); }
.drop:hover { border-style: solid; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.drop span { position: relative; padding: 12px; pointer-events: none; }

pre.ascii { font: 10.5px/14px var(--mono); margin: 8px 0; overflow-x: auto; white-space: pre; color: var(--foam); }
pre.ascii b { font-weight: 400; background: var(--signal); color: var(--abyss); padding: 0 3px; }
pre.ascii .dim { color: var(--ink2); }
.note { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--rule); border-left: 2px solid var(--signal); }
.note p { margin: 0 0 6px; }
.killer { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 18px; padding: 14px 0; border-top: 1px solid var(--signal); border-bottom: 1px solid var(--signal); }
.killer b { font: 400 120px/.85 var(--disp); font-weight: 400; color: var(--signal); }
.logent { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--rule); }
.logent .ld { color: var(--signal); }
.logent b { font: 800 22px/1.05 var(--hull); text-transform: uppercase; letter-spacing: .03em; font-weight: 800; }
.logent p { margin: 4px 0 0; color: var(--ink2); }
.tape.paper .tl { color: var(--ink2); border-bottom-color: rgba(216, 220, 207, .1); }
.tape.paper .tl:hover { color: var(--ink); background: rgba(216, 220, 207, .05); }
.tape.paper .tl span:nth-child(4) { color: var(--ink2); }
.tape.paper .t-buy span:first-child { color: var(--signal); }
.tape.paper .t-sell span:first-child { color: var(--foam); }
.tape.paper .t-sweep span:first-child, .tape.paper .t-rel span:first-child, .tape.paper .t-red span:first-child { color: var(--ink); }
.card .inv.paper { border: 0; padding: 8px 0; }

/* ------------------------------------------------------------------ toasts: lines of tape */
.toasts { position: fixed; z-index: 60; left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; padding: 10px 12px; background: var(--abyss); color: var(--foam); border: 1px solid var(--sea); border-left: 2px solid var(--mist); font: 10px/14px var(--mono); animation: tin 300ms var(--ease) both; }
.toast .tk { color: var(--mist); text-transform: uppercase; }
.toast.ok { border-left-color: var(--signal); }
.toast.ok .tk { color: var(--signal); }
.toast.err { border-left-color: var(--red); }
.toast.err .tk { color: var(--red); }
.toast.out { opacity: 0; transition: opacity 300ms; }
@keyframes tin { from { transform: translateY(6px); opacity: 0; } }

/* dialogs: wallet picker (kit) and the film, on the night chart */
.dlg { border: 1px solid rgba(216, 220, 207, .3); border-top: 3px solid var(--signal); background: var(--abyss); color: var(--foam); padding: 22px; width: min(380px, calc(100vw - 32px)); font: 11px/16px var(--mono); }
.dlg::backdrop { background: rgba(10, 20, 34, .78); }
.dlg h2 { font: 800 34px/1 var(--hull); text-transform: uppercase; margin: 0 0 14px; }
.dlg-x { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 20px; width: 40px; height: 40px; color: var(--foam); }
.wp-list { display: flex; flex-direction: column; gap: 6px; }
.wp-item { display: flex; align-items: center; gap: 10px; min-height: 44px; background: transparent; border: 1px solid rgba(216, 220, 207, .3); padding: 6px 10px; text-align: left; color: var(--foam); }
.wp-item:hover { background: var(--signal); color: var(--abyss); }
.wp-dot { width: 28px; height: 28px; border: 1px dashed currentColor; }
.wp-get { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.wp-err { color: var(--red); }
.btn.ghost { background: none; border: 1px solid var(--foam); padding: 8px 12px; margin-top: 12px; }
.dlg.film { width: min(1040px, calc(100vw - 24px)); padding: 18px 18px 14px; }
.film-v { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--abyss); border: 1px solid rgba(216, 220, 207, .3); }
.film-note { margin: 10px 0 0; color: var(--mist); max-width: 80ch; }

@media (max-width: 1099px), (max-height: 559px) { .buoys { display: none; } .navl a { padding: 9px 0; min-width: 32px; text-align: center; } table.fv td a { display: inline-block; padding: 9px 0; min-width: 34px; min-height: 34px; } .top .tm { padding: 6px 0; } }
@media (max-width: 1099px) {
  .tides { flex-wrap: wrap; justify-content: space-around; row-gap: 50px; }
  .tides li { flex: 0 0 42%; }
  .tides li:nth-child(n) { margin-top: 0; }
  .tides li:nth-child(even) { transform: translateY(8vh); }
  .tides::before { display: none; }
  .slips { row-gap: 24px; }
  .slip, .slip:nth-child(2), .slip:nth-child(3) { transform: rotate(-1deg); }
  .slip:nth-child(2) { transform: rotate(1.2deg); }
}
@media (max-width: 760px) {
  .top .logc { padding: 10px 0; }
  .col { margin-top: 84px; }
  .top { position: absolute; left: 0; justify-content: flex-end; padding: 10px 14px; gap: 10px; }
  .top .tm { position: absolute; top: 14px; left: 16px; font-size: 22px; }
  body[data-view="home"] .top .tm { opacity: 0; pointer-events: none; }
  .key { min-height: 40px; }
  .s-tides { padding: 84px 16px 72px; }
  .tides { flex-direction: column; align-items: stretch; row-gap: 34px; }
  .tides li { flex: none; width: 74%; max-width: none; }
  .tides li:nth-child(odd) { align-self: flex-start; }
  .tides li:nth-child(even) { align-self: flex-end; transform: none; }
  .tides .tn { font-size: 34px; margin-top: 10px; }
  .tides h3 { font-size: 21px; }
  .anytime { margin-top: 48px; flex-wrap: wrap; justify-content: center; }
  .s-harbour { padding: 64px 16px 72px; }
  .hull { font-size: 18vw; }
  .mk .mr { grid-template-columns: 22px minmax(0, 1fr) 40px 50px 12px 58px; gap: 6px; font-size: 10px; }
  .mk .sym { font-size: 22px; }
  canvas.tide { width: 40px; }
  .s-beam { padding: 90px 16px 72px; gap: 34px; }
  .paid { justify-self: center; align-items: center; text-align: center; padding: 0 0 16px; border-right: 0; border-bottom: 1px dashed var(--signal); }
  .paid span:last-child { margin-right: 0; }
  .slips { gap: 12px; }
  pre.ascii { font-size: clamp(7.5px, 2.6vw, 10.5px); line-height: 1.35; }
  .slip { width: calc(50% - 6px); transform: rotate(-1.5deg); }
  .slip:nth-child(2) { transform: rotate(1.4deg) translateY(16px); }
  .slip:nth-child(3) { display: none; }
  .s-radio { padding: 84px 0 64px; }
  .ptape { margin-top: 48px; }
  .ptape .tape .tl { font-size: 10px; padding: 0 12px; }
  .s-deep { padding: 84px 16px 48px; }
  .dsym, .dcd { font-size: 26px; }
  .foot { margin-top: 64px; }
  .pg-h { width: calc(100vw - 32px); padding-top: 88px; }
  .card { padding: 22px 18px 26px; margin-bottom: 64px; }
  .h2 { flex-wrap: wrap; gap: 6px 10px; }
  .h2 span:first-child { font-size: 28px; }
  .h2 i { display: none; }
  canvas.art { width: 150px; height: 150px; }
  .coin-h .ct { font-size: 48px; }
  .coin-h .big { font-size: 40px; }
  .rel summary { grid-template-columns: 90px 1fr; }
  .rel .rs { grid-column: 1 / -1; text-align: left; }
  .killer b { font-size: 80px; }
  table.fv th { width: 40%; }
  .logent { grid-template-columns: 1fr; gap: 4px; }
  .tape.paper .tl { font-size: 10px; grid-template-columns: 62px 1fr 48px 26px; }
}
@media (max-width: 360px) { :root { --col: calc(100vw - 32px); } .law span { white-space: normal; text-align-last: left; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
