/*
 * DAO FUND. Same butter-and-pastel grammar as the cook group it was cut from: warm brown ink,
 * never black; saturated colour only on small surfaces; chunky radii and soft dropped shadows.
 */

:root {
  color-scheme: light;

  --bg:        #ffe9a3;
  --card:      #fffdf5;
  --card-2:    #fff8e0;

  --ink:       #3b3220;
  --ink-2:     #6f6249;
  --ink-3:     #a2957c;

  --brand:     #ffde59;
  --pink:      #ffb3c7;
  --mint:      #a8e6cf;
  --lav:       #c9b6f7;
  --peach:     #ffcba4;
  --tomato:    #ff8f6b;

  --line:      rgba(59, 50, 32, 0.12);
  --line-soft: rgba(59, 50, 32, 0.07);

  --r:    20px;
  --r-sm: 14px;
  --shadow:    0 2px 0 rgba(59,50,32,0.10), 0 8px 20px -10px rgba(59,50,32,0.35);
  --shadow-sm: 0 1px 0 rgba(59,50,32,0.10), 0 4px 12px -8px rgba(59,50,32,0.35);

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* `hidden` must always win, even over elements styled with their own display (the tab buttons). */
[hidden] { display: none !important; }

html { background: var(--bg); }
html, body {
  margin: 0; min-height: 100%;
  color: var(--ink);
  font: 15px/1.55 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
body { background: var(--bg); }

body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 30% at 88% 4%,  color-mix(in oklab, var(--peach) 62%, transparent), transparent 70%),
    radial-gradient(34% 26% at 4% 92%,  color-mix(in oklab, var(--mint) 52%, transparent), transparent 70%),
    radial-gradient(30% 24% at 96% 86%, color-mix(in oklab, var(--pink) 46%, transparent), transparent 70%),
    var(--bg);
}

/* ── nav ─────────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: calc(var(--safe-t) + 14px) 20px 14px;
  background: color-mix(in oklab, var(--bg) 78%, white);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand .mark { width: 38px; height: 38px; border-radius: 13px; box-shadow: var(--shadow-sm); transform: rotate(-3deg); }
.brand b { font-size: 19px; font-weight: 850; letter-spacing: -0.01em; }
.nav .spacer { flex: 1; }

/* ── one-pager ───────────────────────────────────────────────────────────────── */

.landing { min-height: 100dvh; display: flex; flex-direction: column; }
.hero {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 16px 40px; max-width: 940px; margin: 0 auto;
}
.kicker {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2);
  background: var(--card); border-radius: 999px; padding: 7px 15px; box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero h1 {
  margin: 0 0 18px; font-size: clamp(34px, 7vw, 62px); line-height: 1.05;
  font-weight: 850; letter-spacing: -0.035em; text-wrap: balance;
}
.hero h1 em {
  font-style: normal; background: var(--brand); border-radius: 12px; padding: 0 10px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.hero p { margin: 0 auto 30px; max-width: 32em; font-size: clamp(15px, 2.4vw, 18px); color: var(--ink-2); text-wrap: pretty; }

.big {
  font-size: 17px; font-weight: 850; padding: 15px 30px; border-radius: 999px;
  background: var(--brand); border: 1px solid rgba(59,50,32,0.2); box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 9px;
  transition: transform .1s ease;
}
.big:hover { background: color-mix(in oklab, var(--brand) 88%, white); }
.big:active { transform: translateY(2px); }
.big:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.foot { text-align: center; padding: 0 16px calc(var(--safe-b) + 28px); font-size: 12px; color: var(--ink-3); }

/* ── the DAO (app) ───────────────────────────────────────────────────────────────── */

.room { height: 100dvh; display: flex; flex-direction: column; }
.room .nav { position: static; }
.status {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 750;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px;
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.status.on .dot { background: #34c759; }

button { font: inherit; color: var(--ink); cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.primary, .ghost, .chip, .wallet-btn {
  border-radius: 999px; font-weight: 800; border: 1px solid rgba(59,50,32,0.2); box-shadow: var(--shadow-sm);
}
.primary { background: var(--brand); padding: 10px 18px; }
.primary:hover:not(:disabled) { background: color-mix(in oklab, var(--brand) 85%, white); }
.ghost { background: var(--card); padding: 10px 16px; border-color: var(--line); }
.ghost:hover:not(:disabled) { background: var(--card-2); }
.wallet-btn { background: var(--brand); padding: 8px 15px; font-size: 14px; white-space: nowrap; }
.wallet-btn.on { background: var(--card); border-color: var(--line); font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }

.tabs { display: flex; gap: 6px; padding: 10px 16px; justify-content: center; border-bottom: 1px solid var(--line-soft); }
.tabs button {
  border: 0; background: none; padding: 8px 20px; border-radius: 999px; font-weight: 800; font-size: 14.5px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 7px;
}
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.badge { background: var(--tomato); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 850; padding: 1px 7px; }

.view { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.view[hidden] { display: none; }

.feed { flex: 1; overflow-y: auto; padding: 20px 16px; }
.feed-in { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
#pending:not(:empty) { margin-top: 12px; }
.jump {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 112px; z-index: 5;
  background: var(--ink); color: var(--card); border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 13px; box-shadow: var(--shadow);
}

.empty {
  margin: 10vh auto 0; max-width: 28em; text-align: center; color: var(--ink-2);
  background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow);
}
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.muted { color: var(--ink-3); font-size: 13px; }
.err { color: #b4361b; font-size: 13px; font-weight: 700; margin: 0; }

.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 88%; }
.msg .av {
  width: 34px; height: 34px; flex: none; border-radius: 12px; display: grid; place-items: center;
  font-size: 12px; font-weight: 850; box-shadow: var(--shadow-sm); background: var(--lav);
}
.msg .body { min-width: 0; }
.msg .who { font-size: 12px; font-weight: 800; color: var(--ink-2); margin: 0 0 3px 2px; font-family: ui-monospace, Menlo, monospace; }
.msg.agent .who { font-family: inherit; }
.msg .who time { font-weight: 650; color: var(--ink-3); margin-left: 6px; font-family: ui-rounded, system-ui, sans-serif; }
.msg .bubble {
  background: var(--card); border-radius: 6px var(--r-sm) var(--r-sm) var(--r-sm);
  padding: 10px 14px; box-shadow: var(--shadow-sm); white-space: pre-wrap; overflow-wrap: anywhere;
}
.msg .tag { font-weight: 850; background: var(--brand); border-radius: 6px; padding: 0 4px; }
.msg.to-agent .bubble { box-shadow: var(--shadow-sm), inset 3px 0 0 var(--brand); }
.msg.agent .av { background: var(--brand); }
.msg.agent .bubble { border: 2px solid var(--brand); background: linear-gradient(170deg, #fffdf5, var(--card-2)); }
.msg .quote {
  font-size: 12.5px; color: var(--ink-2); background: var(--card-2); border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0; padding: 5px 10px; margin: 0 0 5px; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.msg .quote b { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg.mine .who { text-align: right; margin: 0 2px 3px 0; }
.msg.mine .bubble { background: color-mix(in oklab, var(--mint) 38%, var(--card)); border-radius: var(--r-sm) 6px var(--r-sm) var(--r-sm); }
.msg.pending .bubble { opacity: .65; }
.msg.failed { cursor: pointer; }
.msg.failed .bubble { opacity: 1; background: color-mix(in oklab, var(--tomato) 22%, var(--card)); }
.msg.failed .who time { color: #b4361b; font-weight: 750; }

.sys { text-align: center; }
.sys span { display: inline-block; font-size: 12.5px; font-weight: 750; color: var(--ink-2); background: color-mix(in oklab, var(--card) 70%, transparent); border-radius: 999px; padding: 5px 14px; }

/* proposals and jobs */
.prop, .job { background: var(--card); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); border: 2px solid var(--lav); }
.job { border-color: var(--line-soft); }
.prop-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.prop-h .by { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.pill { font-size: 11.5px; font-weight: 850; border-radius: 999px; padding: 3px 10px; }
.s-voting { background: var(--lav); }
.s-exec { background: var(--brand); }
.s-exec::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #34c759; margin-right: 6px; vertical-align: 1px; animation: pulse 1.3s ease-in-out infinite; }
.s-done { background: var(--mint); }
.s-no { background: color-mix(in oklab, var(--tomato) 45%, var(--card)); }
.s-closed { background: var(--card-2); color: var(--ink-2); }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .s-exec::before { animation: none; } }
.prop h4, .job h4 { margin: 0 0 4px; font-size: 17px; font-weight: 850; letter-spacing: -0.01em; }
.pbody { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bar { height: 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-soft); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s ease; }
.counts { font-size: 13px; color: var(--ink-2); margin: 6px 0 10px; }
.note-line { font-size: 13.5px; background: var(--card-2); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.voted { font-size: 13px; font-weight: 800; background: var(--mint); border-radius: 999px; padding: 6px 12px; }

.timeline { border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.tl time { font-size: 11.5px; font-weight: 750; color: var(--ink-3); }
.tl-text { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tx { font-size: 13px; font-weight: 800; color: #8a5f00; }

/* composer */
.composer {
  border-top: 1px solid var(--line-soft);
  background: color-mix(in oklab, var(--bg) 78%, white);
  padding: 12px 16px calc(var(--safe-b) + 12px);
}
.compose, .gate { max-width: 760px; margin: 0 auto; }
.compose .row { display: flex; gap: 10px; align-items: flex-end; }
.compose textarea {
  flex: 1; resize: none; max-height: 160px; min-height: 48px; font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; box-shadow: var(--shadow-sm);
}
.compose .primary { min-height: 48px; padding: 12px 20px; }
.tools { display: flex; gap: 8px; margin-top: 8px; }
.chip { background: var(--card); border-color: var(--line); padding: 5px 12px; font-size: 12.5px; }
.gate { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 650; color: var(--ink-2); }

/* dialogs */
.dlg {
  border: 0; border-radius: 24px; padding: 22px; width: min(460px, calc(100vw - 32px));
  background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(59,50,32,0.5);
}
.dlg::backdrop { background: rgba(59,50,32,0.35); backdrop-filter: blur(3px); }
.dlg h3 { margin: 0 0 4px; font-size: 20px; font-weight: 850; }
.dlg .sub { margin: 0 0 16px; color: var(--ink-2); font-size: 13.5px; }
.dlg label { display: block; font-size: 12px; font-weight: 800; color: var(--ink-2); margin-bottom: 12px; }
.dlg input, .dlg textarea {
  display: block; width: 100%; margin-top: 5px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: vertical;
}
.dlg .row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.wallets { display: flex; flex-direction: column; gap: 8px; }
.wallet-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: var(--card-2); border: 1px solid var(--line); font-weight: 800; text-align: left;
}
.wallet-item:hover:not(:disabled) { background: color-mix(in oklab, var(--brand) 30%, var(--card)); }
.wallet-item img { width: 28px; height: 28px; border-radius: 8px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + 130px); transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: var(--card); padding: 10px 18px; border-radius: 999px; font-weight: 750; font-size: 14px;
  box-shadow: var(--shadow); max-width: calc(100vw - 32px);
}

@media (max-width: 560px) {
  .room .nav { padding-left: 16px; padding-right: 16px; gap: 8px; }
  .room .brand b { font-size: 16px; }
  .room .brand .mark { width: 32px; height: 32px; }
  .status .txt { display: none; }
  .status { padding: 8px; }
  .msg { max-width: 100%; }
  .gate { justify-content: center; text-align: center; }
}

/* ── coin links (nav + footer) ───────────────────────────────────────────────── */

.links { display: flex; align-items: center; gap: 8px; }
.icon-link, .ca-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 13.5px; white-space: nowrap;
}
.icon-link svg { width: 16px; height: 16px; flex: none; }
.icon-link:hover:not([aria-disabled]) , .ca-pill:hover:not(:disabled) { background: var(--card-2); }
.icon-link[aria-disabled] { opacity: .5; cursor: default; }
.ca-pill { cursor: pointer; font-family: inherit; }
.ca-pill b { font-size: 11px; letter-spacing: .08em; color: var(--ink-3); }
.ca-pill .val { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.ca-pill .ic svg { width: 14px; height: 14px; display: block; }
.ca-pill.copied { background: var(--mint); }
.ca-pill:disabled { cursor: default; opacity: .7; }

/* ── landing: second button with its "live soon" note ────────────────────────── */

.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ghost-big { background: var(--card); cursor: pointer; font-family: inherit; }
.ghost-big:hover { background: var(--card-2); }
.soon-wrap { position: relative; display: inline-flex; }
.tip {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 4px);
  background: var(--ink); color: var(--card); font-size: 13.5px; font-weight: 700; white-space: nowrap;
  padding: 9px 14px; border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; z-index: 5;
}
.tip b { color: var(--brand); }
.tip::after { content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--ink); }
.soon-wrap:hover .tip, .soon-wrap.open .tip, .soon-wrap:focus-within .tip { opacity: 1; transform: translate(-50%, 0); }

/* ── landing footer ──────────────────────────────────────────────────────────── */

.foot { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.foot-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.treasury-line { margin: 0; font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; text-align: center; }
.treasury-line a { font-family: ui-monospace, Menlo, monospace; color: var(--ink-2); }
.disclaimer { margin: 0; }

/* ── treasury tab ────────────────────────────────────────────────────────────── */

.treasury { border: 2px solid var(--brand); }
.kicker-sm { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.addr { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; overflow-wrap: anywhere; margin: 4px 0 10px; }
.big-num { font-size: clamp(30px, 6vw, 42px); font-weight: 850; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 4px; }
.tok-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.tok-row:first-of-type { border-top: 0; }
.tok-row .amt { font-weight: 800; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .landing .links .lbl, .landing .ca-pill .val { display: none; }
  .landing .icon-link, .landing .ca-pill { padding: 0 11px; }
}
@media (max-width: 860px) {
  .room .links .lbl, .room .ca-pill .val, .room .ca-pill .ic { display: none; }
  .room .icon-link, .room .ca-pill { padding: 0 10px; height: 34px; }
}
@media (max-width: 560px) {
  .room .nav { gap: 5px; }
  .room .brand { gap: 8px; }
  .room .brand b { font-size: 15px; }
  .room .links { gap: 4px; }
  .room .icon-link, .room .ca-pill { padding: 0 8px; height: 32px; }
  .room .status { padding: 7px; }
  .wallet-btn { padding: 7px 12px; font-size: 13px; }
  .wallet-btn .long { display: none; }
  /* Below the button on a phone, so the note never covers "Enter the DAO". */
  .tip { white-space: normal; width: max-content; max-width: min(280px, calc(100vw - 32px)); text-align: center; bottom: auto; top: calc(100% + 12px); }
  .tip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--ink); }
}

.lock .lock-row { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }

/* The way in: bigger than an ordinary button, with a slow sheen so it reads as an entrance. */
.big.grand {
  font-size: 19px; padding: 18px 38px; letter-spacing: -0.01em; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffe680, var(--brand)); box-shadow: 0 3px 0 rgba(59,50,32,0.18), 0 16px 34px -14px rgba(59,50,32,0.55);
}
.big.grand::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  animation: sheen 3.6s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .big.grand::after { animation: none; } }
.cta { align-items: center; }

/* ── jobs: exploring, verdict, the pinned bar ────────────────────────────────── */

.s-explore { background: var(--sky, #a8d8f0); }
.verdict { background: var(--card-2); border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; padding: 9px 12px; margin-bottom: 10px; font-size: 14px; }
.verdict b { margin-right: 8px; }
.verdict time { font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.pinned {
  display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); max-width: 760px; margin: 10px auto 0;
  background: var(--card); border: 2px solid var(--brand); border-radius: 14px; padding: 9px 14px; box-shadow: var(--shadow-sm);
  font-size: 14px; text-align: left; cursor: pointer;
}
.pinned[hidden] { display: none; }
.pinned .pin-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.pinned .muted { flex: none; }

.plan { background: var(--card-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; font-size: 14px; }
.plan p { margin: 4px 0 6px; color: var(--ink-2); }
.plan ol { margin: 0; padding-left: 20px; }
.plan li { margin: 2px 0; }

/* ── landing: the living background ──────────────────────────────────────────── */

.landing .nav, .landing .hero, .landing .foot { position: relative; z-index: 2; }
.landing .nav { background: color-mix(in oklab, var(--bg) 60%, transparent); }
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.scene .layer { position: absolute; inset: -60px; will-change: transform; }

.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .75; animation: orbit 26s ease-in-out infinite alternate; }
.orb.peach { width: 46vw; height: 46vw; left: 58%; top: -14%; background: var(--peach); }
.orb.mint  { width: 40vw; height: 40vw; left: -10%; top: 52%; background: var(--mint); animation-duration: 31s; }
.orb.pink  { width: 30vw; height: 30vw; left: 66%; top: 62%; background: var(--pink); opacity: .55; animation-duration: 23s; }
.orb.lav   { width: 28vw; height: 28vw; left: 18%; top: -16%; background: var(--lav); opacity: .5; animation-duration: 35s; }
@keyframes orbit { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4vw, 3vh) scale(1.08); } 100% { transform: translate(-3vw, 5vh) scale(.95); } }

/* the ledger floor: lines receding into the distance, sliding slowly toward you */
.floor { perspective: 600px; }
.floor .grid {
  position: absolute; left: -25%; right: -25%; bottom: -10%; height: 55%;
  transform: rotateX(68deg); transform-origin: 50% 100%;
  background-image:
    linear-gradient(to right, rgba(59,50,32,.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59,50,32,.10) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: floor 6s linear infinite;
}
@keyframes floor { to { background-position: 0 64px, 0 64px; } }

.item { position: absolute; will-change: transform; }
.bob { animation: bob 7s ease-in-out infinite; filter: drop-shadow(0 10px 18px rgba(59,50,32,.18)); }
.bob.coin svg { width: 100%; height: 100%; display: block; }
.bob.coin { transform-origin: center; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-16px) rotate(5deg); } }
.bob.chip {
  font-size: 13px; font-weight: 850; white-space: nowrap; padding: 7px 13px; border-radius: 999px;
  background: color-mix(in oklab, var(--card) 85%, transparent); border: 1px solid var(--line); color: var(--ink-2);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.bob.chip.mint { background: color-mix(in oklab, var(--mint) 55%, var(--card)); }
.bob.chip.lav { background: color-mix(in oklab, var(--lav) 50%, var(--card)); }
.bob.chip.peach { background: color-mix(in oklab, var(--peach) 55%, var(--card)); }
.bob.chip.sky { background: color-mix(in oklab, var(--sky, #a8d8f0) 55%, var(--card)); }
.bob.chip.exec { background: var(--brand); color: var(--ink); }

.spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(255,255,255,.8); animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: .9; transform: scale(1); } }

/* keep the words readable over everything moving behind them */
.landing .hero h1, .landing .hero p { text-shadow: 0 2px 18px rgba(255, 233, 163, .9); }
@media (max-width: 760px) {
  .bob.chip { font-size: 11.5px; padding: 6px 10px; }
  .item.no-phone { display: none; }   /* on a phone: just the coins around the edges */
}
@media (prefers-reduced-motion: reduce) {
  .orb, .floor .grid, .bob, .spark { animation: none !important; }
}

.subtabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 4px; }
.subtabs button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.subtabs button.on { background: var(--brand); color: var(--ink); border-color: rgba(59,50,32,0.2); }

.job .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job.open .clamp { -webkit-line-clamp: unset; display: block; }
.job-stats { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 12px; }
.job-stats .stat { flex: 1 1 110px; background: var(--card-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 8px 12px; }
.job-stats .stat b { display: block; font-size: 17px; font-weight: 850; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.job-stats .stat span { font-size: 11.5px; font-weight: 750; color: var(--ink-3); }
.see-more { margin-top: 10px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: 13px; box-shadow: var(--shadow-sm); }
.see-more:hover { background: var(--card-2); }

.paused-bar { text-align: center; font-size: 14px; font-weight: 700; padding: 10px 16px; background: color-mix(in oklab, var(--peach) 70%, var(--card)); border-bottom: 1px solid var(--line-soft); }
.paused-bar b { font-weight: 900; margin-right: 4px; }
