/* Hock's own look, on top of base.css: the paper ticket and its wax seal, the pegboard, the enamel plaque, the
   ledger. Reads only tokens. DESIGN.md is the reference. */

/* ---------- type and buttons, in this world ---------- */
h1, h2, .display { font-variation-settings: var(--display-axes); }
h1.display { font-size: clamp(50px, 7vw, 104px); line-height: 0.9; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1; }
.lede { color: var(--ink-2); }
.btn { border-radius: var(--r-sm); font-weight: 600; letter-spacing: 0.005em; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-2); filter: none; }
.btn.lg { height: 54px; padding: 0 26px; font-size: 16.5px; }
.seg, .chips { border-radius: var(--r-sm); }
.seg button { border-radius: 4px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.kicker { color: var(--accent); letter-spacing: 0.14em; }
.kicker-dot { background: var(--wax); border-radius: 50%; }
.label { letter-spacing: 0.1em; }
.chip { border-radius: 4px; }
.accent { color: var(--accent); }

/* ---------- header ---------- */
/* no backdrop blur anywhere: on PCs without a GPU it is redrawn on the CPU every frame (checklist P3) */
#top { background: color-mix(in srgb, var(--bg) 97%, transparent); backdrop-filter: none; }
.tabbar { backdrop-filter: none !important; background: var(--surface) !important; }
.modal-veil { backdrop-filter: none; background: rgba(5, 9, 7, 0.74); }
.brand { color: var(--ink); }
.brand .wordmark svg { display: block; }
.nav a { border-radius: var(--r-sm); position: relative; }
.nav a[aria-current] { background: none; color: var(--ink); }
.nav a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--accent); }
.wallet-btn { border-radius: var(--r-sm); background: var(--surface); }
.demo-strip { background: var(--surface-2); }
.resume-bar { background: var(--surface-2); border-bottom: var(--border); padding: 10px 0; font-size: 14.5px; }
.resume-bar a { text-decoration: underline; color: var(--accent); }

/* ---------- the paper ---------- */
.ticket-lg, .tk-paper, .seal-step, .empty-paper {
  --notch: var(--bg);
  color: var(--paper-ink);
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .17 0 0 0 0 .13 0 0 0 0 .08 0 0 0 .10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.03));
  box-shadow: var(--paper-shadow);
}
.ticket-lg ::selection, .tk-paper ::selection { background: var(--paper-ink); color: var(--paper); }

/* ---------- the wax seal ---------- */
.seal { display: inline-block; line-height: 0; }
.seal svg { overflow: visible; }
.seal-sealed svg, .seal-released svg, .seal-forfeit svg { filter: drop-shadow(0 2px 1.5px rgba(60, 20, 10, 0.35)); }
.seal.press { animation: seal-press 560ms var(--ease) 380ms both; }
@keyframes seal-press {
  0% { transform: scale(1.4) rotate(-10deg); opacity: 0; }
  55% { transform: scale(0.97) rotate(0deg); opacity: 1; }
  78% { transform: scale(1.012); }
  100% { transform: scale(1); }
}

/* ---------- the big ticket (hero calculator, the pledge form, a ticket's page) ---------- */
.ticket-lg { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) 24px minmax(0, 0.92fr); border-radius: 4px; }
.tl-body { position: relative; padding: 30px 28px 26px 30px; }
.tl-punch { position: absolute; top: 16px; left: 16px; width: 13px; height: 13px; border-radius: 50%; background: var(--notch); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.55); }
.tl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-left: 14px; }
.tl-title { font: 800 clamp(26px, 2.6vw, 32px)/1 var(--font-display); font-variation-settings: var(--display-axes); letter-spacing: -0.02em; color: var(--paper-ink); }
.tl-no { font: 700 12.5px var(--font-mono); color: var(--wax); letter-spacing: 0.04em; white-space: nowrap; }
.tl-example { margin: 8px 0 2px 14px; font: 12.5px var(--font-mono); color: var(--paper-muted); }
.tl-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 18px; }
.tl-label { font-size: 13.5px; color: var(--paper-muted); }
.tl-line { display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--paper-ink); padding-bottom: 2px; }
.tl-line:focus-within { border-bottom-color: var(--wax); }
.tl-input { flex: 1; width: 0; min-width: 0; border: 0; outline: none; background: none; padding: 2px 0; font: 700 clamp(20px, 2vw, 24px)/1.25 var(--font-mono); color: var(--paper-ink); letter-spacing: 0.01em; }
.tl-input::placeholder { color: rgba(43, 35, 24, 0.35); }
.tl-unit { font: 700 13px var(--font-mono); color: var(--paper-muted); white-space: nowrap; }
.tl-max { border: 0; background: none; padding: 0; font: 700 12px var(--font-mono); color: var(--paper-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tl-have { font: 12.5px var(--font-mono); color: var(--paper-muted); }
.tl-problem { font-size: 13px; color: #8f2a20; }
.tl-problem:empty { display: none; }
.tl-terms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tl-terms button { min-width: 44px; height: 38px; padding: 0 8px; border: 1.5px solid var(--paper-ink); border-radius: 3px; background: transparent; font: 700 14px var(--font-mono); color: var(--paper-ink); cursor: pointer; }
.tl-terms button[aria-pressed="true"] { background: var(--paper-ink); color: var(--paper); }
.tl-terms button:focus-visible { outline: 2px solid var(--wax); }

/* the perforation: a dashed tear line with two punched notches */
.tl-perf { position: relative; background: repeating-linear-gradient(180deg, var(--paper-line) 0 7px, transparent 7px 13px) center / 2px 100% no-repeat; }
.tl-perf::before, .tl-perf::after { content: ""; position: absolute; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--notch); }
.tl-perf::before { top: -11px; }
.tl-perf::after { bottom: -11px; }

.tl-stub { position: relative; padding: 30px 26px 26px 18px; display: grid; align-content: start; }
.tl-seal { position: absolute; top: -26px; right: -18px; transform: rotate(-9deg); z-index: 2; }
.tl-outcomes { display: grid; gap: 14px; padding-top: 62px; }
.tl-out { display: grid; gap: 2px; }
.tl-out span { font-size: 13.5px; color: var(--paper-muted); }
.tl-out b { font: 700 clamp(19px, 1.8vw, 22px)/1.2 var(--font-mono); color: var(--paper-ink); }
.tl-out b small { font: 400 13px var(--font-mono); color: var(--paper-muted); }
.tl-out .tl-big { font-size: clamp(24px, 2.4vw, 30px); }
.tl-miss { margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--paper-line); font-size: 13.5px; line-height: 1.45; color: var(--paper-ink); font-style: italic; }

/* the hero's ticket hangs from a brass nail, a little crooked */
.hero-art { display: grid; justify-items: center; padding-top: 70px; }
.hero-ticket { width: min(620px, 100%); transform: rotate(1.4deg); transform-origin: 30px 0; }
.tl-string { position: absolute; left: 22px; top: -86px; width: 2px; height: 104px; background: linear-gradient(180deg, var(--accent), rgba(216, 168, 78, 0.55)); transform: rotate(-9deg); transform-origin: bottom center; z-index: 1; }
.tl-string::before { content: ""; position: absolute; top: -9px; left: -6px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f3d593, var(--accent) 55%, #8d6a26); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }

/* ---------- home ---------- */
.hero { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-top: clamp(36px, 5vw, 64px); }
.hero-copy { padding-top: 8px; }
.plaque { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; padding: 9px 16px; border-radius: 4px; background: var(--paper); color: #1d3a2c; border: 2px solid var(--accent); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px rgba(216, 168, 78, 0.35), 0 10px 24px -12px rgba(0, 0, 0, 0.8); font: 700 13px var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; position: relative; }
.plaque::before, .plaque::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.4); }
.plaque i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--wax); }
.hero-copy .lede { margin-top: 22px; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink); max-width: 30em; }
.hero-sub { margin-top: 12px; color: var(--muted); max-width: 34em; }
.points { display: grid; gap: 10px; margin-top: 22px; }
.points li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); }
.points .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }
.ctas { margin-top: 30px; }

.numbers { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; padding-top: clamp(56px, 7vw, 92px); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.numbers-grid .stat { padding: 18px 18px 16px 0; }
.numbers-grid .stat + .stat { padding-left: 18px; border-left: var(--border); }
.numbers-grid .stat-value { font: 700 30px/1.1 var(--font-mono); color: var(--ink); }
.numbers .ca { margin: 0; align-self: center; }

section[id] { scroll-margin-top: calc(var(--top-h) + 48px); }
.section-head h2 { margin-top: 2px; }
.section-head .lede { margin-top: 14px; }
.seal-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 30px; counter-reset: s; }
.seal-step { position: relative; padding: 22px 20px 22px; border-radius: 4px; display: grid; gap: 8px; align-content: start; --notch: var(--bg); }
.seal-step::before { content: ""; position: absolute; top: 14px; left: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--notch); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5); }
.seal-step-art { display: flex; justify-content: flex-end; height: 80px; margin: -8px -6px 4px 0; }
.seal-step-art .seal { transform: rotate(-8deg); }
.seal-step .step-n { color: var(--wax); font-weight: 700; }
.seal-step h3 { font: 800 26px/1 var(--font-display); font-variation-settings: var(--display-axes); color: var(--paper-ink); }
.seal-step .ix { justify-self: start; font: 12.5px var(--font-mono); color: var(--paper-muted); background: rgba(43, 35, 24, 0.07); padding: 2px 6px; border-radius: 3px; }
.seal-step p { color: var(--paper-muted); font-size: 14.5px; }

.fees-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 22px; margin-top: 26px; align-items: start; }
.fee-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fee-table th { text-align: left; font: 700 11.5px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line-2); }
.fee-table td { padding: 14px 12px 14px 0; border-bottom: var(--border); color: var(--ink-2); vertical-align: top; }
.fee-table td:first-child { color: var(--ink); }
.fee-table td.mono { color: var(--ink); white-space: nowrap; }
.ledger .fine { margin-top: 12px; }
.fee-example { padding: 22px; border-radius: var(--r); border: var(--border); background: var(--surface); }
.fee-big { display: grid; gap: 4px; margin-bottom: 8px; }
.fee-num { font-size: 52px; line-height: 1; }
.fee-example .costs { margin-top: 14px; }
.split-bar { display: flex; height: 12px; margin-top: 16px; border-radius: 2px; overflow: hidden; background: var(--surface-2); }
.split-bar .b { background: var(--accent); }
.split-bar .o { flex: 1; }
.fee-example .fine { margin-top: 12px; }
.burn-note { margin-top: 22px; max-width: 54em; font-size: 14.5px; }

.program { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 36px; align-items: start; }
.program .lede { margin-top: 14px; }
.program-addr { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; padding: 12px 14px; border: 1px dashed var(--line-3); border-radius: var(--r-sm); }
.program-addr a { font-size: 14px; word-break: break-all; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.program-soon { margin-top: 20px; padding: 12px 14px; border: 1px dashed var(--line-3); border-radius: var(--r-sm); font-size: 14.5px; }
.ix-list { display: grid; border-top: 1px solid var(--line-2); }
.ix-list li { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 13px 0; border-bottom: var(--border); align-items: baseline; }
.ix-list code { font: 700 14px var(--font-mono); color: var(--accent); }

.risk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.risk { padding: 22px; border-radius: var(--r); border: var(--border); background: var(--surface); display: grid; gap: 8px; }
.risk h3 { font-size: 18px; }

.close-band { display: grid; justify-items: center; text-align: center; gap: 18px; padding: clamp(40px, 6vw, 72px) 20px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.close-band h2 { font-size: clamp(36px, 5vw, 64px); }

/* ---------- the pegboard ---------- */
.pegboard {
  --notch: var(--surface);
  padding: clamp(26px, 3vw, 40px) clamp(18px, 3vw, 34px) clamp(34px, 4vw, 48px);
  border-radius: var(--r-lg); border: var(--border);
  background-color: var(--surface);
  background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.55) 0 2.4px, rgba(241, 234, 217, 0.05) 2.8px 3.2px, transparent 3.6px);
  background-size: 30px 30px; background-position: 15px 15px;
}
.peg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 40px 28px; }
.board-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; }
.board-note { margin: 0 0 22px; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--ink-2); max-width: 640px; }

/* ---------- a ticket on a peg ---------- */
.tk { position: relative; padding-top: 18px; }
.tk-peg { position: absolute; top: 0; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f3d593, var(--accent) 55%, #7d5d20); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.6); z-index: 2; }
.tk-peg::after { content: ""; position: absolute; top: 10px; left: 5px; width: 2px; height: 16px; background: var(--accent); opacity: 0.8; }
.tk-paper { position: relative; padding: 22px 18px 16px; border-radius: 3px; transform: rotate(var(--tilt, 0deg)); transform-origin: 50% -12px; transition: transform 320ms var(--ease); }
.tk:hover .tk-paper { transform: rotate(0deg); }
.tk-paper::before { content: ""; position: absolute; top: 9px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--notch); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.55); }
.tk-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.tk-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tk-no { font: 700 12px var(--font-mono); color: var(--paper-muted); letter-spacing: 0.04em; }
.tk-state { font: 700 10.5px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-muted); }
.tk-state.st-active { color: #8a2920; }
.tk-state.st-claimable { color: #8a2920; text-decoration: underline; }
.tk-state.st-repaid { color: var(--stamp-green); }
.tk-demo { font: 700 10px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 1px 5px; border: 1px solid var(--paper-line); border-radius: 2px; color: var(--paper-muted); }
.tk-bag { margin-top: 8px; display: grid; }
.tk-bag b { font: 700 25px/1.05 var(--font-mono); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.tk-bag span { font: 700 13px var(--font-mono); color: var(--paper-muted); }
.tk-seal { margin: -8px -8px 0 0; transform: rotate(-10deg); }
.tk-perf { position: relative; height: 2px; margin: 14px -18px 12px; background: repeating-linear-gradient(90deg, var(--paper-line) 0 7px, transparent 7px 13px); }
.tk-perf::before, .tk-perf::after { content: ""; position: absolute; top: -8px; width: 18px; height: 18px; border-radius: 50%; background: var(--notch); }
.tk-perf::before { left: -9px; }
.tk-perf::after { right: -9px; }
.tk-rows { display: grid; gap: 7px; }
.tk-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tk-rows dt { font-size: 13px; color: var(--paper-muted); }
.tk-rows dd { margin: 0; text-align: right; font: 700 14.5px var(--font-mono); }
.tk-rows dd small { display: block; font: 400 11.5px var(--font-mono); color: var(--paper-muted); }
.tk-people { display: grid; gap: 2px; margin-top: 12px; font-size: 12.5px; color: var(--paper-muted); }
.tk-people a { color: var(--paper-ink); text-decoration: underline; text-underline-offset: 2px; }
.tk-clock { margin-top: 4px; font: 700 12.5px var(--font-mono); color: var(--paper-ink); }
.tk-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--paper-line); }
.tk-foot .btn:not(.primary) { background: transparent; border-color: rgba(43, 35, 24, 0.45); color: var(--paper-ink); }
.tk-foot .btn:not(.primary):hover { border-color: var(--paper-ink); }
.tk-link { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--paper-ink); text-decoration: underline; text-underline-offset: 3px; }
.tk[data-state="repaid"] .tk-paper, .tk[data-state="cancelled"] .tk-paper, .tk[data-state="forfeit"] .tk-paper { filter: saturate(0.85) brightness(0.96); }
.tk.skeleton .tk-paper { min-height: 280px; display: grid; gap: 14px; align-content: start; }
.tk.skeleton .sk { background: rgba(43, 35, 24, 0.1); border-radius: 3px; animation: none; }

/* a ticket's own page */
.tk-lg .tk-paper { padding: 30px 30px 24px; }
.tk-lg .tk-bag b { font-size: clamp(30px, 4vw, 44px); }
.tk-lg .tk-rows dd { font-size: 16px; }
.ticket-page { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 40px; }
.ticket-page .pegboard { padding: 34px 30px 40px; }
.timeline { display: grid; gap: 0; border-top: 1px solid var(--line-2); margin-top: 14px; }
.timeline li { display: grid; grid-template-columns: 112px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: var(--border); align-items: baseline; }
.timeline .when { font: 12.5px var(--font-mono); color: var(--muted); }
.ticket-actions { display: grid; gap: 10px; margin-top: 22px; padding: 18px; border: var(--border); border-radius: var(--r); background: var(--surface); }

/* ---------- the pledge form ---------- */
.pledge-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }
.pledge-ticket { --notch: var(--bg); }
.pledge-ticket .tl-outcomes { padding-top: 64px; }
.pledge-ticket .tl-seal { top: 12px; right: 12px; }
.pledge-go { margin-top: 18px; }
.pledge-go .btn { width: 100%; }
.pledge-go .todo { margin-top: 8px; font-size: 13px; color: var(--paper-muted); min-height: 1.3em; }
.pledge-side { display: grid; gap: 14px; position: sticky; top: calc(var(--top-h) + 20px); }
.pledge-side .notes .icon { color: var(--accent); }

/* ---------- my loans ---------- */
.loans-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }

/* ---------- proof: a ledger ---------- */
.proof-book { border-top: 1px solid var(--line-2); }
.proof-row { display: grid; grid-template-columns: 110px 82px 96px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 13px 4px; border-bottom: var(--border); font-size: 14.5px; }
.proof-row:hover { background: var(--bg-2); }
.proof-time { font-size: 12.5px; color: var(--muted); }
.proof-kind { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.proof-row[data-kind="LoanFunded"] .proof-kind, .proof-row[data-kind="FeesWithdrawn"] .proof-kind { color: var(--accent); }
.proof-row[data-kind="LoanDefaulted"] .proof-kind { color: var(--bad); }
.proof-row[data-kind="LoanRepaid"] .proof-kind { color: var(--good); }
.proof-no { font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.proof-text { color: var(--ink); }
.tx { color: var(--ink-2); }
.burns { margin-top: 48px; }

/* ---------- empty, modal, footer ---------- */
.empty .seal { margin-bottom: 4px; opacity: 0.9; }
.empty .seal-awaiting circle, .flow-done .seal-awaiting circle { stroke: var(--muted); }
.empty .seal-awaiting text, .flow-done .seal-awaiting text { fill: var(--ink-2); }
.modal-panel { border-radius: var(--r); background: var(--surface); }
.modal-head h2 { font-size: 26px; }
.big-line b { color: var(--accent); }
.costs dd { color: var(--ink); }
.flow-done { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 8px 0 6px; }
.flow-done .seal { transform: rotate(-8deg); }
.flow-steps li.now .flow-mark { border-color: var(--accent); }
.flow-steps li.done .flow-mark { background: var(--accent); color: var(--on-accent); }
.foot-brand .wordmark { color: var(--ink); display: inline-block; }
.foot-risk { max-width: 64em; }
.notfound { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 80px 16px 40px; }
.torn { width: 260px; padding: 26px 22px 30px; border-radius: 3px; transform: rotate(-3deg); clip-path: polygon(0 0, 100% 0, 100% 78%, 92% 84%, 84% 79%, 74% 86%, 63% 80%, 52% 88%, 41% 81%, 30% 87%, 19% 80%, 9% 86%, 0 80%); }
.torn .tl-no { display: block; margin-bottom: 8px; }
.torn b { font: 700 28px var(--font-mono); }

.tabbar, .tabbar a { border-radius: var(--r) !important; }
.tabbar { gap: 2px; }
.tabbar a { flex: 1 1 0; min-width: 0; padding: 9px 4px !important; text-align: center; font-size: 13.5px !important; }
.tabbar a[aria-current] { background: var(--accent) !important; color: var(--on-accent) !important; }

/* ---------- phones ---------- */
@media (max-width: 1080px) {
  .seal-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { padding-top: 84px; }
  .fees-grid, .program, .pledge-grid, .ticket-page { grid-template-columns: 1fr; }
  .pledge-side { position: static; }
  .numbers { grid-template-columns: 1fr; }
  .numbers .ca { justify-self: start; }
}
@media (max-width: 720px) {
  .ticket-lg { grid-template-columns: 1fr; }
  .tl-perf { height: 24px; background: repeating-linear-gradient(90deg, var(--paper-line) 0 7px, transparent 7px 13px) center / 100% 2px no-repeat; }
  .tl-perf::before, .tl-perf::after { top: 50%; left: auto; margin: -11px 0 0; }
  .tl-perf::before { left: -11px; }
  .tl-perf::after { right: -11px; bottom: auto; }
  .tl-body { padding: 26px 20px 18px 22px; }
  .tl-stub { padding: 20px 20px 22px; }
  .tl-seal { top: -40px; right: 6px; }
  .tl-outcomes { padding-top: 34px; }
  .pledge-ticket .tl-outcomes { padding-top: 34px; }
  .hero-ticket { transform: rotate(0.8deg); }
  .numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers-grid .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .numbers-grid .stat:nth-child(n + 3) { border-top: var(--border); }
  .seal-steps, .risk-grid { grid-template-columns: 1fr; }
  .ix-list li { grid-template-columns: 1fr; gap: 2px; }
  .proof-row { grid-template-columns: 82px minmax(0, 1fr); gap: 4px 12px; }
  .proof-row .proof-no { grid-column: 1; grid-row: 2; }
  .proof-row .proof-kind { grid-column: 2; grid-row: 1; }
  .proof-row .proof-text { grid-column: 2; grid-row: 2 / span 2; }
  .proof-row .tx { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .peg-grid { grid-template-columns: 1fr; }
  .plaque { letter-spacing: 0.12em; font-size: 12px; }
  .hero-copy .ctas { justify-self: stretch; }
  .tk-lg .tk-paper { padding: 26px 18px 20px; }
  .tk-lg .tk-bag b { font-size: 26px; }
  .tk-lg .tk-seal .seal, .tk-lg .tk-seal svg { width: 72px !important; height: 72px !important; }
  .ticket-page .pegboard { padding: 30px 14px 34px; }
  /* the seal presses in from 1.4x: never let it widen the page sideways */
  .hero-art, main { overflow-x: clip; }
}
