:root {
  --bg: #0b0907;
  --panel: rgba(14, 11, 9, .9);
  --panel-solid: #120f0c;
  --ink: #ece4d6;
  --ink-2: #b9ae9c;
  --ink-3: #7d7366;
  --line: rgba(236, 228, 214, .12);
  --line-2: rgba(236, 228, 214, .22);
  --red: #b5281e;
  --red-ink: #e0574b;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --serif: 'Libre Caslon Text', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--red); color: var(--ink); }

/* ---------- scene ---------- */
.scene { position: fixed; inset: 0; overflow: hidden; background: var(--bg); transition: filter .35s var(--ease), transform .45s var(--ease); }
.stage {
  position: absolute; left: 50%; top: 50%;
  width: max(100vw, calc(100vh * 1280 / 704));
  aspect-ratio: 1280 / 704;
  transform: translate(-50%, -50%);
}
.still, .idle { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.idle { opacity: 0; transition: opacity .25s var(--ease); }
.idle.on { opacity: 1; }
.vignette { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(11,9,7,.55), rgba(11,9,7,0) 32%), linear-gradient(to bottom, rgba(11,9,7,.72), rgba(11,9,7,0) 16%, rgba(11,9,7,0) 62%, rgba(11,9,7,.78)); }
body.open .scene { filter: brightness(.42) saturate(.8); transform: translateX(-8vw); }

/* hotspots: corner brackets drawn with gradients, label chip above */
.spot { position: absolute; border-radius: 2px; }
.spot::before {
  content: ''; position: absolute; inset: -6px; opacity: 0; transform: scale(1.04);
  transition: opacity .16s var(--ease), transform .2s var(--ease);
  --c: rgba(236,228,214,.9); --l: 12px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) top left / 1px var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) top right / 1px var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) bottom left / 1px var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) bottom right / 1px var(--l);
  background-repeat: no-repeat;
}
.spot .tag {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 4px);
  white-space: nowrap; opacity: 0; pointer-events: none;
  background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 6px 10px 7px; display: grid; gap: 1px;
  transition: opacity .16s var(--ease), transform .2s var(--ease);
}
.tag b { font: 800 15px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.tag i { font: 400 10.5px/1.3 var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.spot:hover::before, .spot:focus-visible::before, .spot.lit::before { opacity: 1; transform: scale(1); }
.spot:hover .tag, .spot:focus-visible .tag, .spot.lit .tag { opacity: 1; transform: translate(-50%, 0); }
.spot:focus-visible { outline: none; }
body.open .spots { pointer-events: none; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  height: 64px; padding: 0 var(--s6);
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.mark { width: 42px; height: 42px; color: var(--ink); margin: 0 -2px 0 -4px; }
.word { font: 900 26px/1 var(--display); letter-spacing: .1em; padding-top: 2px; }
.nav { display: flex; gap: var(--s1); }
.nav a {
  font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); padding: 10px 12px; border-radius: var(--r);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(236,228,214,.06); }
.nav a.on { color: var(--ink); box-shadow: inset 0 -1px 0 var(--red); }

/* ---------- the Don thinks out loud: pixel thought bubble above his head ---------- */
:root { --px: 4px; --paper: #ece4d6; --pixel: 'Pixelify Sans', var(--mono); }
.think { position: absolute; left: 56.5%; bottom: 72%; z-index: 3; pointer-events: none; }
.puff, .bubble {
  background: var(--paper);
  box-shadow:
    0 calc(var(--px) * -1) var(--paper), 0 var(--px) var(--paper), calc(var(--px) * -1) 0 var(--paper), var(--px) 0 var(--paper),
    0 calc(var(--px) * -2) var(--bg), 0 calc(var(--px) * 2) var(--bg), calc(var(--px) * -2) 0 var(--bg), calc(var(--px) * 2) 0 var(--bg),
    calc(var(--px) * -1) calc(var(--px) * -1) var(--bg), var(--px) calc(var(--px) * -1) var(--bg), calc(var(--px) * -1) var(--px) var(--bg), var(--px) var(--px) var(--bg),
    calc(var(--px) * 3) calc(var(--px) * 3) rgba(0,0,0,.35);
}
.puff { position: absolute; display: block; opacity: 0; }
.p1 { width: 8px; height: 8px; left: -12px; bottom: -78px; }
.p2 { width: 12px; height: 12px; left: 4px; bottom: -52px; }
.p3 { width: 18px; height: 16px; left: 24px; bottom: -26px; }
.bubble {
  position: absolute; left: 40px; bottom: 0;
  width: max-content; min-width: 120px; max-width: min(420px, 30vw);
  padding: 10px 14px 12px; color: #17120d;
  opacity: 0; transform-origin: 0 100%;
}
.b-text { margin: 0; font: 500 17px/1.32 var(--pixel); letter-spacing: .01em; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 46vh; overflow-y: auto; scrollbar-width: none; }
.b-act { margin: 0 0 6px; font: 600 11px/1.3 var(--pixel); letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.b-act:empty { display: none; }
.caret { display: inline-block; width: .5em; height: .9em; background: #17120d; vertical-align: -.08em; margin-left: 2px; animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dots i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: #17120d; animation: dot 1s steps(1) infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 60% { opacity: .2; } 30% { opacity: 1; } }

.think.on .p1 { animation: pop .12s steps(2) forwards; }
.think.on .p2 { animation: pop .12s steps(2) .08s forwards; }
.think.on .p3 { animation: pop .12s steps(2) .16s forwards; }
.think.on .bubble { animation: pop .18s steps(3) .24s forwards; }
@keyframes pop { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 1; transform: scale(1); } }
.think.on .puff { animation-name: pop, bob; animation-duration: .12s, 2.4s; animation-timing-function: steps(2), steps(2); animation-iteration-count: 1, infinite; }
.think.on .p2 { animation-delay: .08s, .3s; } .think.on .p3 { animation-delay: .16s, .6s; }
@keyframes bob { 50% { translate: 0 -4px; } }
body.open .think { opacity: 0; }

/* ---------- the dock: you talk back from the bottom of the table ---------- */
.dock {
  position: fixed; z-index: 15; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px));
  display: grid; gap: 8px;
  transition: opacity .25s var(--ease), transform .3s var(--ease);
}
body.open .dock { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.you { margin: 0; justify-self: end; max-width: 80%; font: 400 12px/1.45 var(--mono); color: var(--ink-2); background: rgba(11,9,7,.72); padding: 6px 10px; border-radius: var(--r); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.you[hidden] { display: none; }
.chips { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.opt {
  font: 500 13px/1 var(--pixel); letter-spacing: .02em; color: var(--ink);
  background: rgba(11,9,7,.78); padding: 8px 12px 9px;
  box-shadow: inset 0 0 0 2px rgba(236,228,214,.28);
  transition: box-shadow .12s steps(2), background-color .12s steps(2), color .12s steps(2);
}
.opt:hover, .opt:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--paper); background: var(--paper); color: #17120d; }
.ask { display: flex; align-items: center; gap: 8px; background: rgba(11,9,7,.86); padding: 6px 6px 6px 14px; box-shadow: inset 0 0 0 2px rgba(236,228,214,.28); transition: box-shadow .12s steps(2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ask:focus-within { box-shadow: inset 0 0 0 2px var(--paper); }
.ask input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: 400 15px/1.4 var(--serif); padding: 8px 0; }
.ask input::placeholder { color: var(--ink-3); font-style: italic; }
.ask button { height: 36px; padding: 0 14px; background: var(--paper); color: #17120d; font: 600 13px/1 var(--pixel); letter-spacing: .04em; text-transform: uppercase; transition: background-color .12s steps(2); }
.ask button:hover { background: #fff; }
.ask.busy { opacity: .55; pointer-events: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- drawer (subpages) ---------- */
.drawer {
  position: fixed; z-index: 18; top: 0; right: 0; bottom: 0;
  width: min(560px, 100vw);
  background: var(--panel-solid); border-left: 1px solid var(--line);
  transform: translateX(100%); visibility: hidden;
  transition: transform .4s var(--ease), visibility 0s linear .4s;
  overflow-y: auto; overscroll-behavior: contain;
}
body.open .drawer { transform: none; visibility: visible; transition: transform .4s var(--ease); }
.drawer-in { padding: 96px var(--s7) var(--s7); outline: none; }
.crumb { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s6); }
.crumb span { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.close { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r); transition: color .15s var(--ease), border-color .15s var(--ease); }
.close:hover { color: var(--ink); border-color: var(--ink-2); }
.d-kicker { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); margin: 0 0 var(--s3); }
.d-title { font: 900 64px/.88 var(--display); letter-spacing: .005em; text-transform: uppercase; margin: 0 0 var(--s4); }
.d-lede { font: 400 18px/1.5 var(--serif); color: var(--ink); margin: 0 0 var(--s6); text-wrap: pretty; }
.quote { font: italic 400 16px/1.5 var(--serif); color: var(--ink-2); border-left: 1px solid var(--red); padding-left: var(--s4); margin: 0 0 var(--s6); }
.h { font: 800 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: var(--s6) 0 var(--s3); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: var(--s3); padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.steps li b { color: var(--ink); font-weight: 400; }
.steps .n { font: 500 12px/1.9 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.terms { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); margin-top: var(--s5); }
.terms div { padding: 12px 14px; border-right: 1px solid var(--line); }
.terms div:last-child { border-right: 0; }
.terms dt { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.terms dd { margin: 0; font: 800 18px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }

/* request form */
.form { margin-top: var(--s6); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); background: rgba(236,228,214,.02); }
.form .h { margin-top: 0; }
.field { display: grid; gap: 6px; margin-bottom: var(--s4); }
.field label { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: 400 14px/1.4 var(--mono); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: var(--r); padding: 11px 12px; width: 100%;
  transition: border-color .15s var(--ease);
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 84px; font-family: var(--serif); font-size: 15px; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(-45deg, transparent 50%, var(--ink-2) 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field.bad input { border-color: var(--red-ink); }
.err { font: 400 12px/1.3 var(--mono); color: var(--red-ink); min-height: 0; }
.submit {
  width: 100%; height: 48px; border-radius: var(--r); background: var(--ink); color: var(--bg);
  font: 800 17px/1 var(--display); letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .15s var(--ease), transform .12s var(--ease);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.submit:hover { background: #fff; }
.submit:active { transform: translateY(1px); }
.submit[disabled] { opacity: .6; cursor: progress; }
.spin { width: 14px; height: 14px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fine { font: 400 12px/1.5 var(--mono); color: var(--ink-3); margin: var(--s3) 0 0; }

/* receipt */
.receipt { margin-top: var(--s6); border: 1px dashed var(--line-2); border-radius: var(--r); padding: var(--s5); font-family: var(--mono); animation: lineIn .35s var(--ease); }
.receipt .top { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px dashed var(--line-2); margin-bottom: 12px; }
.receipt .top b { font: 900 22px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.receipt .top span { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.receipt .row { display: flex; justify-content: space-between; gap: var(--s4); font-size: 12.5px; padding: 5px 0; color: var(--ink-2); }
.receipt .row span:last-child { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; word-break: break-all; }
.receipt .stamp { margin-top: 14px; display: inline-block; font: 800 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); border: 1.5px solid var(--red-ink); padding: 6px 10px; transform: rotate(-2deg); border-radius: 2px; }
.receipt p { font: italic 400 14px/1.5 var(--serif); color: var(--ink-2); margin: 14px 0 0; }

/* services menu */
.menu { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.menu a { display: grid; grid-template-columns: 28px 1fr auto; gap: var(--s3); align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); transition: background-color .15s var(--ease), padding .2s var(--ease); }
.menu a:hover { background: rgba(236,228,214,.03); padding-left: 6px; }
.menu .n { font: 500 12px/1 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.menu b { display: block; font: 800 24px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; margin-bottom: 6px; }
.menu small { font-size: 14px; color: var(--ink-2); }
.menu .obj { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* the books */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger > li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.l-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); margin-bottom: 8px; }
.l-no { font: 500 11px/1 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.l-verdict { font: 800 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.l-verdict.granted { color: var(--ink); box-shadow: inset 0 -1px 0 var(--red); padding-bottom: 2px; }
.l-wallet { font: 500 12px/1 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; transition: color .15s var(--ease); }
.l-wallet:hover { color: var(--ink); }
.l-ask { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.l-why { margin: 0 0 8px; font: italic 400 14px/1.5 var(--serif); color: var(--ink-2); }
.l-ev { margin: 0 0 8px; padding-left: 16px; font-size: 14px; color: var(--ink-2); }
.l-meta { display: flex; gap: var(--s4); font: 400 11px/1 var(--mono); color: var(--ink-3); }
.ledger-empty { padding: var(--s5) 0; font: italic 400 15px/1.5 var(--serif); color: var(--ink-3); }

.nojs { position: fixed; bottom: 16px; left: 16px; font-family: var(--mono); }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  body { overflow: auto; }
  .bar { padding: 0 var(--s4); height: 56px; background: linear-gradient(var(--bg), rgba(11,9,7,0)); }
  .nav a { padding: 8px 7px; font-size: 10.5px; letter-spacing: .08em; }
  .nav a[data-nav="table"] { display: none; }
  .word { font-size: 22px; }
  .scene { position: relative; height: auto; aspect-ratio: 1280 / 704; margin-top: 56px; }
  .stage { position: relative; left: 0; top: 0; width: 100%; transform: none; }
  .vignette { display: none; }
  .spot .tag { display: none; }
  .think { left: 56%; bottom: 70%; }
  .bubble { max-width: 46vw; padding: 6px 8px 8px; }
  .b-text { font-size: 13px; }
  .dock { position: relative; left: auto; bottom: auto; transform: none; width: auto; margin: var(--s4); }
  body.open .dock { transform: none; }
  body.open .scene { transform: none; }
  .drawer-in { padding: 80px var(--s4) var(--s6); }
  .d-title { font-size: 48px; }
  .terms { grid-template-columns: 1fr; }
  .terms div { border-right: 0; border-bottom: 1px solid var(--line); }
  .terms div:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
