/* Hallmark · macrostructure: bespoke till-at-night scroll · genre: atmospheric · theme: custom (brand green on till black) · nav: N9 edge-aligned, hides on scroll · footer: Ft5 statement · contrast: pass (40-41) · mobile: pass (34, 49, 50-57)
 * Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 */
@font-face { font-family: Hanken; src: url('/assets/fonts/hanken-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --mint: #00D64F;
  --mint-hi: #18E765;
  --paper: #F4FFF7;
  --paper-hi: #FBFFFC;
  --ink: #070A08;
  --raise: #0F1411;
  --raise-hi: #151C17;
  --night: #030503;
  --night-2: #050806;
  --seg: #1B241E;
  --line: #1F2922;
  --scroll: #2A352E;
  --tick: #33453A;
  --unread: #445148;
  --faint: #7A8A7F;
  --dim: #9BAA9F;
  --soft: #D3DFD6;
  --off: #1F2A23;
  --off-ink: #8A998E;
  --bad: #FF8F7A;
  --glass: rgba(9, 13, 10, .88);
  --glass-bar: rgba(7, 10, 8, .86);
  --chip: rgba(15, 20, 17, .7);
  --pill-off: rgba(244, 255, 247, .22);
  --veil-side: rgba(3, 5, 3, .35);
  --veil-foot: rgba(3, 5, 3, .75);
  --field-veil: rgba(2, 24, 11, .58);
  --font: Hanken, Arial, sans-serif;
  --control: 52px;
  --gut: 40px;
  --r: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ink); scrollbar-width: thin; scrollbar-color: var(--scroll) var(--ink); }
html, body { margin: 0; overflow-x: clip; }
body { color: var(--paper); font: 400 17px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 8px; }
::-webkit-scrollbar-button { display: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 4px; }

/* curtain */
#curtain { position: fixed; inset: 0; z-index: 90; background: var(--ink); display: grid; place-items: center; }
#curtain img { border-radius: 18px; }

/* top bar */
.topbar { position: fixed; z-index: 40; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 24px; padding: 20px var(--gut); transition: transform .45s var(--ease); }
.topbar.tucked { transform: translateY(-110%); }
.topbar.ground { background: var(--glass-bar); backdrop-filter: blur(14px); }
.brandmark { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; flex: none; }
.brandmark img { width: 36px; height: 36px; border-radius: 10px; }
.toplinks { display: flex; gap: 24px; margin-right: auto; margin-left: 12px; font-size: 15px; color: var(--soft); }
.toplinks a { position: relative; padding: 4px 0; }
.toplinks a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--mint); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.toplinks a:hover::after { transform: scaleX(1); transform-origin: left; }
.topactions { display: flex; align-items: center; gap: 8px; }
.roundlink { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--chip); transition: border-color .25s, background .25s; }
.roundlink:hover { border-color: var(--mint); }
.cachip, .buypill, .phantompill { height: 40px; padding: 0 16px; border-radius: 20px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.cachip { border: 1px solid var(--line); background: var(--chip); color: var(--dim); }
.cachip:not(:disabled) { color: var(--paper); }
.cachip:not(:disabled):hover { border-color: var(--mint); }
.buypill { background: var(--paper); color: var(--ink); }
.buypill:hover { background: var(--paper-hi); }
.buypill[aria-disabled='true'] { background: var(--pill-off); color: var(--soft); cursor: not-allowed; }
.phantompill { background: var(--mint); color: var(--ink); font-weight: 700; }
.phantompill:hover { background: var(--mint-hi); }

/* stage */
.stage { position: relative; min-height: 100svh; padding: 120px var(--gut) 64px; display: grid; grid-template-columns: minmax(0, 1fr) clamp(440px, 26vw, 640px); gap: 56px; align-items: start; background: var(--night); overflow: hidden; isolation: isolate; }
.stage-art { position: absolute; inset: 0; z-index: -1; }
.stage-art img { position: absolute; left: 0; top: 28%; width: 100%; height: 100%; object-fit: cover; object-position: left top; -webkit-mask-image: linear-gradient(180deg, transparent 0, var(--ink) 16%); mask-image: linear-gradient(180deg, transparent 0, var(--ink) 16%); will-change: transform; }
.stage-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--veil-side) 0%, transparent 40%), linear-gradient(0deg, var(--veil-foot) 0%, transparent 24%); }
.stage-words { max-width: 1480px; }
.bigline { font-size: clamp(42px, 5.6vw, 150px); line-height: 1.01; letter-spacing: -.04em; font-weight: 700; }
.bigline em { font-style: normal; color: var(--mint); }
.mask { display: block; overflow: hidden; padding-bottom: .09em; margin-bottom: -.09em; }
.rise { display: block; }
.stage-sub { margin-top: 20px; font-size: clamp(17px, 1.35vw, 26px); line-height: 1.35; max-width: 46ch; color: var(--soft); }

/* the till */
.till { background: var(--glass); border: 1px solid var(--line); border-radius: 28px; padding: 16px 20px 20px; backdrop-filter: blur(18px); align-self: center; }
.till-coin { height: 150px; margin: -8px -8px 8px; position: relative; }
.till-coin canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.seg { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--raise); border-radius: 14px; padding: 4px; margin-bottom: 16px; }
.seg-mark { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); background: var(--seg); border-radius: 10px; transition: transform .4s var(--ease); }
.seg-btn { position: relative; padding: 12px 8px; font-size: 15px; font-weight: 600; color: var(--dim); border-radius: 10px; transition: color .25s; }
.seg-btn[aria-selected='true'] { color: var(--paper); }

.fld { display: block; margin-bottom: 12px; }
.fld > span { display: block; font-size: 14px; color: var(--dim); margin-bottom: 8px; }
.fld input { width: 100%; height: var(--control); padding: 0 16px; font-size: 17px; font-weight: 500; background: var(--raise); border: 1px solid var(--line); border-radius: 12px; outline: 2px solid transparent; outline-offset: 1px; transition: border-color .2s; }
.fld input:hover { border-color: var(--tick); }
.fld input:focus-visible { outline-color: var(--mint); }
input:disabled { opacity: .55; cursor: not-allowed; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 12px; }
.fld-short input { text-transform: uppercase; }

.tags { display: flex; flex-direction: column; gap: 16px; }
.tagrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.tagfield { display: flex; align-items: baseline; border-bottom: 2px solid var(--line); padding: 4px 0 8px; transition: border-color .2s; }
.tagfield:focus-within { border-color: var(--mint); }
.tagfield b { color: var(--mint); font-size: clamp(34px, 3vw, 44px); font-weight: 700; line-height: 1; }
.tagfield input { flex: 1; min-width: 0; font-size: clamp(34px, 3vw, 44px); font-weight: 700; letter-spacing: -.03em; background: none; border: 0; outline: 2px solid transparent; outline-offset: 2px; line-height: 1; padding: 0 0 0 4px; }
.tagfield input:focus-visible { outline-color: var(--mint); border-radius: 4px; }
.tagfield input::placeholder { color: var(--faint); opacity: 1; }
.tagfine { font-size: 13px; color: var(--dim); }
.tagextra { display: grid; grid-template-columns: minmax(0, 1fr) 72px auto; gap: 8px; align-items: end; }
.tagextra.solo { grid-template-columns: minmax(0, 1fr); }
.tagextra .fld { margin: 0; }
.tagremove { height: var(--control); padding: 0 8px; color: var(--dim); font-size: 14px; }
.tagremove:hover { color: var(--paper); }
.forwhom { font-size: 18px; font-weight: 600; margin-bottom: 12px; }

.ghostline { display: inline-block; font-size: 15px; font-weight: 500; color: var(--dim); padding: 8px 0; margin-top: 4px; cursor: pointer; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.ghostline:hover { color: var(--paper); border-bottom-color: var(--mint); }
.bigbtn { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; height: var(--control); padding: 0 8px 0 20px; margin-top: 8px; background: var(--mint); color: var(--ink); font-size: 18px; font-weight: 700; border-radius: 14px; transition: background .25s, transform .2s var(--ease); }
.bigbtn:hover { background: var(--mint-hi); }
.bigbtn:active { transform: scale(.985); }
.bigbtn:disabled { background: var(--off); color: var(--off-ink); cursor: progress; }
button:disabled:not(.cachip):not(.bigbtn) { opacity: .55; cursor: not-allowed; }
.cachip:disabled { cursor: not-allowed; }
.roundlink:active, .cachip:not(:disabled):active, .buypill:active, .phantompill:active, .pillbtn:active, .seg-btn:active, .ghostline:active, .tagremove:active { transform: translateY(1px); }
.seg-btn:hover { color: var(--paper); }
.seg-btn, .bigbtn span, .pillbtn, .ghostline, .toplinks a, .footrow a { white-space: nowrap; }
.bigbtn i { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); position: relative; overflow: hidden; flex: none; }
.bigbtn i::before, .bigbtn i::after { content: ''; position: absolute; top: 50%; left: 50%; width: 11px; height: 11px; margin: -8px 0 0 -8px; border-top: 2px solid var(--mint); border-right: 2px solid var(--mint); transform: rotate(45deg); transition: transform .35s var(--ease); }
.bigbtn i::after { transform: translateX(-34px) rotate(45deg); }
.bigbtn:hover i::before { transform: translateX(34px) rotate(45deg); }
.bigbtn:hover i::after { transform: translateX(0) rotate(45deg); }
.bigbtn:disabled i { display: none; }

.pic { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pic canvas { width: 56px; height: 56px; border-radius: 12px; flex: none; }
.pic-copy strong { display: block; font-size: 15px; font-weight: 600; }
.fileinput { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bill { margin: 4px 0 8px; font-size: 14px; color: var(--dim); }
.bill div { display: flex; justify-content: space-between; padding: 4px 0; }
.bill dd { font-variant-numeric: tabular-nums; }
.bill-total { color: var(--paper); font-weight: 600; font-size: 16px; padding-top: 8px !important; }
.note { font-size: 15px; margin-top: 8px; min-height: 1lh; }
.note.bad { color: var(--bad); }
.note.good { color: var(--mint); }
.note a { color: var(--mint); text-decoration: underline; }
.pane-lead { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 12px; }
.fine { font-size: 14px; color: var(--dim); }
.book-sum { font-size: 44px; font-weight: 700; letter-spacing: -.03em; margin: 4px 0 8px; color: var(--mint); font-variant-numeric: tabular-nums; }
.book-coins li { display: flex; justify-content: space-between; font-size: 15px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.book-coins li:last-child { border: 0; }
.book-coins a { color: var(--mint); }
.askout { display: flex; gap: 16px; align-items: center; margin-top: 16px; }
.askqr img { display: block; width: 96px; height: 96px; border-radius: 10px; }

.latest { position: absolute; left: var(--gut); bottom: 32px; max-width: min(520px, calc(100% - 2 * var(--gut))); background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; backdrop-filter: blur(14px); font-size: 15px; }
.latest a { color: var(--mint); }
.latest-row { display: flex; align-items: center; gap: 12px; }
.latest-row strong { font-size: 18px; letter-spacing: -.02em; }
.latest-row small { display: block; color: var(--dim); font-size: 13.5px; }
.thumb { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--raise); font-weight: 700; flex: none; color: var(--mint); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* said */
.said { padding: 172px var(--gut) 152px; background: var(--ink); }
.said p { max-width: 24ch; font-size: clamp(38px, 5.6vw, 118px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; }
.said .wd { color: var(--unread); display: inline-block; }

/* greenfield */
.greenfield { background: linear-gradient(var(--field-veil), var(--field-veil)), url('/assets/img/field.webp') center / cover no-repeat var(--night); color: var(--paper); padding: 160px var(--gut); }
.gf-huge { font-size: clamp(64px, 14vw, 300px); font-weight: 800; letter-spacing: -.05em; line-height: .96; font-variant-numeric: tabular-nums; }
.gf-sub { margin: 20px 0 0; font-size: clamp(20px, 2.1vw, 40px); max-width: 46ch; font-weight: 500; letter-spacing: -.015em; line-height: 1.2; }

/* ring */
.ringroom { position: relative; background: var(--night-2); }
.ringpin { position: relative; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.ticks { position: absolute; width: min(82vh, 92vw); height: min(82vh, 92vw); color: var(--tick); }
.ringcoin { position: absolute; width: min(58vh, 72vw); height: min(58vh, 72vw); }
.ringhead { position: absolute; left: var(--gut); bottom: 56px; font-size: clamp(26px, 3.6vw, 76px); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; max-width: 21ch; }
.ringsub { position: absolute; right: var(--gut); bottom: 62px; font-size: clamp(16px, 1.2vw, 22px); max-width: 46ch; text-align: right; color: var(--dim); }

/* board */
.board { padding: 132px var(--gut) 92px; background: var(--ink); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 28px; }
.board-head h2, .ledgerband h2, .asked h2 { font-size: clamp(42px, 5.2vw, 110px); letter-spacing: -.04em; font-weight: 600; line-height: 1; }
.livestate { color: var(--mint); font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.livestate::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2s ease-in-out infinite; }
.livestate.off { color: var(--dim); }
@keyframes pulse { 50% { opacity: .35; } }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 60px minmax(0, 1.4fr) minmax(0, 1fr) 140px 120px; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.row-tag { transition: color .25s; }
.row:hover .row-tag { color: var(--mint); }
.row .thumb { width: 56px; height: 56px; border-radius: 14px; }
.row-tag { font-size: clamp(24px, 2.6vw, 42px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.row-coin { font-size: 15px; color: var(--dim); }
.row-state { font-size: 14px; color: var(--dim); }
.row-state.yes { color: var(--mint); }
.row-num { text-align: right; font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 500; }
.row-num small { display: block; color: var(--dim); font-size: 13px; font-weight: 400; }
.nothing { padding: 56px 0 44px; font-size: clamp(22px, 2.4vw, 40px); letter-spacing: -.025em; line-height: 1.15; max-width: 46ch; font-weight: 500; }
.nothing .ghostline { display: inline-block; font-size: 16px; margin-top: 16px; letter-spacing: 0; color: var(--mint); }

/* steps */
.steps { padding: 32px var(--gut) 112px; background: var(--ink); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 16px; align-items: start; }
.stepcard { background: var(--raise); border-radius: var(--r); padding: 28px 32px 32px; min-height: 340px; display: flex; flex-direction: column; color: var(--paper); transition: background .35s; }
.stepcard:hover { background: var(--raise-hi); }
.stepcard:nth-child(2) { margin-top: 64px; }
.stepcard:nth-child(3) { margin-top: 128px; }
.stepcard h3 { margin-top: auto; font-size: clamp(30px, 3vw, 54px); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
.stepcard p { color: var(--dim); margin-top: 12px; font-size: 16px; max-width: 46ch; }

/* ledger */
.ledgerband { padding: 92px var(--gut); background: var(--night-2); }
.events { margin-top: 28px; border-top: 1px solid var(--line); }
.events li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.events strong { font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.events small { color: var(--dim); display: block; font-size: 14px; }
.events .amt { font-variant-numeric: tabular-nums; font-size: 16px; }
.events .amt a { color: var(--mint); }
.events .nothing { display: block; grid-column: 1 / -1; }

/* asked */
.asked { padding: 112px var(--gut) 120px; background: var(--ink); }
.asked h2 { margin-bottom: 24px; }
.asked details { border-top: 1px solid var(--line); }
.asked details:last-of-type { border-bottom: 1px solid var(--line); }
.asked summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; font-size: clamp(21px, 2.2vw, 36px); font-weight: 500; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.asked summary::-webkit-details-marker { display: none; }
.asked summary::after { content: ''; width: 16px; height: 16px; flex: none; background: linear-gradient(var(--mint), var(--mint)) center / 100% 2px no-repeat, linear-gradient(var(--mint), var(--mint)) center / 2px 100% no-repeat; transition: transform .3s var(--ease); }
.asked details[open] summary::after { transform: rotate(45deg); }
.asked details p { padding: 0 0 28px; max-width: 62ch; color: var(--soft); font-size: 18px; }

/* sheet views */
.sheetview { min-height: 100svh; padding: 132px var(--gut) 92px; background: var(--ink); }
.sheetview h1 { font-size: clamp(44px, 6.4vw, 140px); letter-spacing: -.04em; line-height: 1; font-weight: 700; }
.sheetview .sub { color: var(--dim); font-size: 19px; margin-top: 12px; }
.sheetview .warn { margin-top: 20px; font-size: 18px; max-width: 54ch; color: var(--soft); }
.figs { display: flex; flex-wrap: wrap; gap: 44px; margin: 44px 0 36px; }
.figs dt { color: var(--dim); font-size: 15px; }
.figs dd { font-size: clamp(30px, 3.4vw, 58px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pillbtn { height: 48px; padding: 0 24px; border-radius: 24px; display: inline-flex; align-items: center; font-weight: 600; font-size: 16px; border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.pillbtn:hover { border-color: var(--mint); }
.pillbtn.solid { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.sheetcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.sheetcols section { background: var(--raise); padding: 24px 24px; border-radius: var(--r); }
.sheetcols h3 { font-size: 24px; letter-spacing: -.02em; font-weight: 600; margin-bottom: 8px; }
.line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.line:last-child { border: 0; }
.line a { color: var(--mint); }

/* foot */
.foot { padding: 60px var(--gut) 36px; background: var(--ink); overflow: hidden; }
.footword { font-size: 15.4vw; font-weight: 800; letter-spacing: -.05em; line-height: .96; color: var(--paper); white-space: nowrap; }
.footrow { display: flex; gap: 24px; margin-top: 24px; font-size: 16px; color: var(--dim); }
.footrow a:hover { color: var(--paper); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--paper); color: var(--ink); padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; max-width: min(92vw, 460px); }

/* phones and small laptops */
@media (max-width: 1040px) {
  .toplinks { display: none; }
  .topactions { margin-left: auto; }
  .stage { grid-template-columns: minmax(0, 1fr); padding: 104px var(--gut) 56px; gap: 28px; min-height: 0; }
  .stage-art img { top: 0; opacity: .32; object-position: 22% 12%; }
  .stage-words { max-width: 680px; }
  .till { align-self: stretch; max-width: 620px; }
  .latest { position: static; max-width: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .stepcard { min-height: 240px; }
  .stepcard:nth-child(n) { margin-top: 0; }
  .row { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .row .row-state, .row .row-coin-col { display: none; }
  .sheetcols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  :root { --gut: 16px; }
  .brandmark span { display: none; }
  .topbar { gap: 8px; padding: 12px var(--gut); }
  .cachip { display: none; }
  .buypill, .phantompill { padding: 0 12px; height: 38px; font-size: 13px; }
  .roundlink { width: 38px; height: 38px; }
  .pair { grid-template-columns: minmax(0, 1fr) 96px; }
  .said { padding: 112px var(--gut) 100px; }
  .ringhead { bottom: 90px; }
  .ringsub { display: none; }
  .row { gap: 12px; }
  .row-num { font-size: 15px; }
  .footrow { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .topbar { gap: 4px; }
  .topactions { gap: 4px; }
  .brandmark img { width: 32px; height: 32px; }
  .roundlink { width: 32px; height: 32px; }
  .buypill, .phantompill { padding: 0 8px; height: 32px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .said .wd { color: var(--paper); }
}

.bigline, .said p, .gf-huge, .ringhead, .board-head h2, .ledgerband h2, .asked h2, .sheetview h1, .stepcard h3, .row-tag { overflow-wrap: anywhere; min-width: 0; }
