/* Brownies. One stylesheet for every page.
   The page is cream paper. The brownies are cocoa with orange icing, and so is everything else: cocoa text and
   outlines, orange buttons, icing dripping from one section into the next. Type: Baloo 2 for the big words,
   Rubik for reading, JetBrains Mono for numbers, addresses and code. No gradients, no glass, no soft shadows:
   a shadow here is a hard edge under a sticker. */

:root {
  --ink: #2A1710;        /* cocoa: text, outlines, dark surfaces */
  --ink-2: #35201A;      /* a card on cocoa */
  --ink-3: #46302A;      /* a hover on cocoa */
  --line: #4F3A32;       /* a line on cocoa */
  --bone: #F6EFE2;       /* cream: the page */
  --bone-2: #ECE2CF;     /* a hover on cream */
  --paper: #FFFBF4;      /* a panel or a field on cream */
  --line-b: #D8CAB3;     /* a line on cream */
  --accent: #FF5A1F;     /* icing */
  --accent-2: #E64A12;   /* icing, pressed */
  --muted: #C9B8A8;      /* secondary text on cocoa, 8.9:1 */
  --muted-b: #6B5447;    /* secondary text on cream, 6.1:1 */
  --shadow: var(--ink);

  --display: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --font: Rubik, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --wrap: 1320px;
  --gut: 28px;
  --r: 22px;
  --bw: 2.5px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted-b); }
.dark .muted { color: var(--muted); }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.015em; line-height: 1; }
h1 { font-size: clamp(50px, 8vw, 120px); line-height: 0.95; letter-spacing: -0.02em; }
h2 { font-size: clamp(34px, 4.6vw, 62px); }
h3 { font-size: 24px; font-weight: 700; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; }
.lead b { font-weight: 600; }
/* the full stop is a sugar cube */
.dot { display: inline-block; overflow: hidden; width: 0.2em; height: 0.2em; margin-left: 0.06em; border-radius: 0.05em; background: var(--accent); color: transparent; line-height: 0; vertical-align: baseline; }

/* a dark surface: cream text, orange icing */
.dark { background: var(--ink); color: var(--bone); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bone); border-bottom: var(--bw) solid var(--ink); }
.nav .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; line-height: 1; }
.nav nav { display: flex; align-items: center; gap: 10px; }
.nav .links { display: flex; align-items: center; gap: 2px; }
.nav nav a.txt { text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; transition: background-color 140ms ease; }
.nav nav a.txt[aria-current="page"] { background: var(--ink); color: var(--bone); }
/* the phone menu button: three bars that become a cross */
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--paper); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: none; }
.menu-btn i { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform 160ms var(--ease-out), opacity 120ms ease; }
.nav.open .menu-btn i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.open .menu-btn i:nth-child(2) { opacity: 0; }
.nav.open .menu-btn i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- buttons: stickers with a hard edge underneath ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: var(--bw) solid var(--ink);
  background: var(--accent); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0; text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out), background-color 140ms ease;
}
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.dark { background: var(--ink); color: var(--bone); }
.btn.bone-btn { background: var(--paper); color: var(--ink); }
.btn[disabled] { background: var(--bone-2); color: var(--muted-b); cursor: not-allowed; box-shadow: 0 4px 0 var(--line-b); border-color: var(--line-b); }
.btn[disabled]:active { transform: none; }
.btn.busy { cursor: progress; }
/* on cocoa the edge is cream, so the sticker still has one */
.dark .btn { border-color: var(--bone); box-shadow: 0 4px 0 var(--bone); }
.dark .btn:active { box-shadow: 0 0 0 var(--bone); }
.dark .btn.ghost { background: transparent; color: var(--bone); }
.dark .btn.bone-btn { background: var(--bone); color: var(--ink); border-color: var(--accent); box-shadow: 0 4px 0 var(--accent); }
.dark .btn.bone-btn:active { box-shadow: 0 0 0 var(--accent); }
.dark .btn[disabled] { background: var(--ink-3); color: var(--muted); border-color: var(--line); box-shadow: 0 4px 0 var(--line); }
.link { font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) {
  .btn:not([disabled]):hover { background: var(--accent-2); }
  .btn.ghost:not([disabled]):hover, .btn.bone-btn:not([disabled]):hover { background: var(--bone-2); }
  .dark .btn.ghost:not([disabled]):hover { background: var(--ink-3); }
  .btn.dark:not([disabled]):hover { background: #1A0D09; }
  .nav nav a.txt:hover { background: var(--bone-2); }
  .nav nav a.txt[aria-current="page"]:hover { background: var(--ink); }
  .menu-btn:hover { background: var(--bone-2); }
  .link:hover { text-decoration-color: var(--ink); }
  .dark .link:hover { text-decoration-color: var(--bone); }
}

/* ---------- icing: one section drips into the next ---------- */
.drip { position: absolute; left: 0; right: 0; top: -1px; height: 48px; pointer-events: none; background: var(--bone);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 48'%3E%3Crect width='240' height='12'/%3E%3Crect x='14' width='22' height='40' rx='11'/%3E%3Crect x='70' width='22' height='26' rx='11'/%3E%3Crect x='128' width='22' height='47' rx='11'/%3E%3Crect x='190' width='22' height='32' rx='11'/%3E%3C/svg%3E") 0 0 / 240px 48px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 48'%3E%3Crect width='240' height='12'/%3E%3Crect x='14' width='22' height='40' rx='11'/%3E%3Crect x='70' width='22' height='26' rx='11'/%3E%3Crect x='128' width='22' height='47' rx='11'/%3E%3Crect x='190' width='22' height='32' rx='11'/%3E%3C/svg%3E") 0 0 / 240px 48px repeat-x; }
.drip.orange { background: var(--accent); }
.drip.cocoa { background: var(--ink); }
.has-drip { position: relative; }

/* ---------- the ticker: the thesis, on a band of icing ---------- */
.ticker { position: relative; z-index: 1; background: var(--accent); color: var(--ink); border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); overflow: hidden; display: flex; }
.ticker-track { display: flex; flex: none; width: max-content; animation: ticker 48s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 22px; padding: 13px 11px 13px 0; font-family: var(--display); font-weight: 700; font-size: 21px; white-space: nowrap; line-height: 1; }
.ticker-track span::after { content: ""; display: inline-block; width: 15px; height: 15px; border-radius: 4px; background: #fff; border: var(--bw) solid var(--ink); margin-left: 11px; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (hover: hover) and (pointer: fine) { .ticker:hover .ticker-track { animation-play-state: paused; } }

/* ---------- home: the intro ---------- */
/* A full-screen stage over the page. intro.js runs the scene; the class "out" lifts it like a curtain. */
.intro { display: none; }
.intro-on .intro, .intro.out { display: block; position: fixed; inset: 0; z-index: 100; background: var(--bone); color: var(--ink); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.intro.out { transform: translateY(-101%); transition: transform 640ms var(--ease-in-out); pointer-events: none; }
html.intro-on { overflow: hidden; }
.intro .stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-copy { position: absolute; left: 0; right: 0; top: 0; max-width: var(--wrap); margin: 0 auto; padding: clamp(20px, 5vh, 56px) var(--gut) 0; pointer-events: none; }
.intro-word { font-family: var(--display); font-weight: 800; font-size: clamp(64px, min(14vw, 21vh), 180px); letter-spacing: -0.025em; line-height: 0.88; }
.intro-tag { font-family: var(--display); font-weight: 700; font-size: clamp(24px, min(3.6vw, 5.5vh), 46px); letter-spacing: -0.01em; line-height: 1; margin-top: clamp(10px, 1.6vh, 18px); }
.intro-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: clamp(16px, 3vh, 30px); }
.intro-row .btn { pointer-events: auto; }
.intro-hint { font-family: var(--mono); font-size: 14px; color: var(--muted-b); }
.intro .tag-name { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; fill: var(--bone); }
.intro .tag-job { font-family: var(--mono); fill: var(--muted); }
/* the row of brownies in the hero waits for the curtain, then pops */
.intro-on .lineup .m { animation: none; }

/* ---------- home: hero ---------- */
/* The brownies stand on the bottom edge of the hero. The band under it is icing, so that edge is their floor. */
.hero { position: relative; overflow: hidden; }
.hero .wrap { padding-top: clamp(36px, 6vh, 72px); }
.hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 56px; align-items: end; }
.hero h1 { font-size: clamp(50px, min(7.6vw, 13vh), 118px); text-wrap: balance; }
.hero .lead { max-width: 28em; }
.cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero .cta { margin-top: 26px; }
.hero-note { margin-top: 22px; font-family: var(--mono); font-size: 14px; color: var(--muted-b); line-height: 1.6; }
.hero-note b { color: var(--ink); font-weight: 500; }
.hero-team { margin-top: clamp(20px, 4vh, 44px); display: flex; justify-content: center; }
.lineup svg { display: block; width: 100%; height: auto; }
.lineup.all { width: min(100%, 140vh); }   /* never taller than about a third of the window */
.lineup.shelf, .lineup.floor { display: none; }
/* backwards only: once a brownie has landed the animation lets go of it, and it is painted like any other shape */
.lineup .m { animation: pop 520ms var(--ease-out) backwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes pop { from { transform: translateY(36px); opacity: 0; } }
[data-mascot] .eyes { transform-box: fill-box; transform-origin: center; }
[data-mascot] .eyes.shut { transform: scaleY(0.08); }   /* mascot.js shuts one pair of eyes for an instant, now and then */

/* ---------- home: sections ---------- */
section[id] { scroll-margin-top: 72px; }
section.band { padding: clamp(64px, 8vw, 120px) 0; }
section.band.has-drip { padding-top: clamp(96px, 10vw, 150px); }
.bone { background: var(--bone); color: var(--ink); }
.band-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 56px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.band-head p { font-size: 19px; line-height: 1.5; max-width: 30em; }
.kicker { display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-b); margin-bottom: 14px; }
.dark .kicker { color: var(--muted); }

/* the team: four stickers */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.member { background: var(--bone); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--r); padding: 4px 20px 22px; min-width: 0; box-shadow: 8px 8px 0 var(--accent); }
.member .pic svg { display: block; width: 100%; height: auto; transition: transform 220ms var(--ease-out); }
.member h3 { font-size: 32px; font-weight: 800; line-height: 1; }
.member .job { display: inline-block; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); background: var(--bone-2); border-radius: 999px; padding: 4px 10px; margin-top: 10px; }
.member p { color: var(--muted-b); font-size: 16.5px; line-height: 1.45; margin-top: 10px; }
@media (hover: hover) and (pointer: fine) { .member:hover .pic svg { transform: translateY(-8px) rotate(-2deg); } }
.facts { list-style: none; margin: clamp(44px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.facts li { border: var(--bw) solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.facts h3 { margin-bottom: 8px; color: var(--bone); }
.facts p { color: var(--muted); font-size: 16.5px; line-height: 1.5; }

/* where the tax goes */
.splitbar { display: grid; grid-template-columns: 20fr 35fr 45fr; height: 92px; border-radius: 999px; overflow: hidden; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); background: var(--paper); }
.splitbar div { display: flex; align-items: center; padding: 0 28px; font-family: var(--display); font-weight: 800; font-size: 30px; min-width: 0; }
.splitbar .s1 { background: var(--accent); color: var(--ink); }
.splitbar .s2 { background: var(--ink); color: var(--bone); }
.splitbar .s3 { background: var(--paper); color: var(--ink); padding: 0 16px; justify-content: center; }
/* the tax drawn as plumbing: one pipe in, the Harvester, three pipes out. The same split is drawn twice, across
   for wide screens and down for phones; the colours are the page's own (cocoa, cream, paper, icing) */
.tax-intro p + p { margin-top: 16px; }
.taxflow { margin: 0; }
.pipe-wide { display: none; width: 100%; height: auto; }
.pipe-phone { display: block; width: 100%; max-width: 400px; height: auto; margin-inline: auto; }
.pipe-type { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.pipe-display { font-family: var(--display); font-weight: 800; }
.pipe-caption { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--muted-b); font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.pipe-caption::before { content: ""; width: 10px; height: 10px; flex: none; border: 2px solid var(--ink); border-radius: 3px; background: var(--accent); }
@media (min-width: 900px) { .pipe-wide { display: block; } .pipe-phone { display: none; } }
.splitkey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; margin-top: 34px; }
.splitkey b { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 21px; font-weight: 700; }
.splitkey b::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: var(--bw) solid var(--ink); flex: none; background: var(--paper); }
.splitkey .k1 b::before { background: var(--accent); }
.splitkey .k2 b::before { background: var(--ink); }
.splitkey span { display: block; color: var(--muted-b); font-size: 16px; line-height: 1.45; margin-top: 4px; max-width: 24em; }
.steps { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.steps li { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 22px 24px 24px; }
.steps .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); border: var(--bw) solid var(--ink); font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1; }
.steps h3 { margin: 14px 0 8px; }
.steps p { color: var(--muted-b); font-size: 16.5px; line-height: 1.5; }

/* the key */
.use-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; align-items: start; }
.use-grid h2 { margin-bottom: 20px; }
.use-grid p { color: var(--muted); font-size: 19px; line-height: 1.5; max-width: 26em; }
.use-grid p + p { margin-top: 14px; }
.use-grid .cta { margin-top: 28px; }
pre.code { margin: 0; background: var(--ink); color: #E8DED0; border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 22px 24px; overflow-x: auto; font-family: var(--mono); font-size: 14.5px; line-height: 1.7; tab-size: 2; }
pre.code .c { color: #A08E80; }
pre.code .k { color: var(--accent); }
.dark pre.code { background: #1C0F0A; border-color: var(--line); }
.bone pre.code, .prose pre.code { box-shadow: 6px 6px 0 var(--accent); }

/* live numbers: shown only when the chain answers */
/* on air: where the kitchen cam can be watched (the home page's strip, the Room page's line) */
/* the coin's address under the hero, once the coin is live (home.js shows it): the one address, big enough to read */
.coinlive { background: var(--ink); color: var(--bone); border-bottom: var(--bw) solid var(--ink); }
.coinlive .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 30px; padding-bottom: 32px; }
.coinlive .kicker { color: var(--accent); margin-bottom: 8px; }
.coinlive h2 { font-size: 36px; }
.coinlive-addr { display: flex; align-items: center; gap: 14px; min-width: 0; }
.coinlive-addr code { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; background: var(--ink-2); border: var(--bw) solid var(--bone); border-radius: 14px; padding: 14px 18px; font-size: 20px; line-height: 1.35; color: var(--bone); user-select: all; }
.coinlive-note { margin: 0; color: var(--muted); font-size: 15px; }
.coinlive-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.coinlive-go .link { color: var(--bone); }
@media (max-width: 760px) {
  .coinlive h2 { font-size: 27px; }
  .coinlive-addr { flex-direction: column; align-items: stretch; }
  .coinlive-addr code { font-size: 15.5px; }
}
.onair { background: var(--paper); border-bottom: var(--bw) solid var(--ink); }
.onair .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; padding-top: 26px; padding-bottom: 26px; }
.onair-say { display: flex; align-items: center; gap: 18px; min-width: 0; }
.onair-say h2 { font-size: 32px; }
.onair-say p { margin: 6px 0 0; color: var(--muted-b); font-size: 16px; }
.onair-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: var(--bw) solid var(--ink); animation: onair 1.4s ease-in-out infinite alternate; }
@keyframes onair { from { opacity: 1; } to { opacity: 0.3; } }
.onair-go { display: flex; flex-wrap: wrap; gap: 12px; }
.onair-go .btn svg { width: 18px; height: 18px; flex: none; }
.onair-line { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 0; font-family: var(--mono); font-size: 14px; line-height: 1.5; color: var(--muted-b); }
.onair-line .onair-dot { width: 12px; height: 12px; border-width: 2px; position: relative; top: 1px; }
.onair-line a { color: var(--ink); font-weight: 500; }
@media (max-width: 700px) {
  .onair-say h2 { font-size: 26px; }
  .onair-go { width: 100%; }
  .onair-go .btn { flex: 1 1 0; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) { .onair-dot { animation: none; } }

.live { border-bottom: var(--bw) solid var(--ink); background: var(--paper); }
.live .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.live .cell { padding: 26px 24px 26px 0; }
.live .cell + .cell { padding-left: 24px; border-left: var(--bw) solid var(--line-b); }
.live .v { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.live .l { color: var(--muted-b); font-size: 15px; margin-top: 2px; }

/* contracts table */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-b); padding: 0 16px 12px 0; border-bottom: var(--bw) solid var(--ink); }
.tbl td { padding: 18px 16px 18px 0; border-bottom: 1.5px solid var(--line-b); vertical-align: top; font-size: 17px; line-height: 1.45; }
.tbl td:first-child { font-family: var(--display); font-weight: 700; font-size: 19px; white-space: nowrap; }
.tbl td.addr { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.tbl td.addr a { text-underline-offset: 3px; }
.dark .tbl th { color: var(--muted); border-bottom-color: var(--bone); }
.dark .tbl td { border-bottom-color: var(--line); }

/* ---------- kitchen and progress ---------- */
.page-head { padding-top: 48px; padding-bottom: 30px; }
.page-head h1 { font-size: clamp(44px, 6.4vw, 84px); }
.page-head .lead { color: var(--muted-b); margin-top: 16px; max-width: 42em; }
/* the building site: a cream stage with the oven, the tower and the brownies, and one line about what is pointed at */
.site { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 8px 8px 0 var(--ink); }
.site-stage { position: relative; height: min(62vh, 600px); min-height: 400px; }
.site-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.site-label { position: absolute; left: 22px; top: 18px; pointer-events: none; }
.site-label h2 { font-size: clamp(28px, 3.4vw, 44px); }
.site-count { font-family: var(--mono); font-size: 14px; color: var(--muted-b); margin-top: 6px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; pointer-events: auto; }
.site-nav button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: var(--bw) solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 3px 0 var(--ink); transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out), background-color 140ms ease; }
.site-nav button:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.site-info { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 22px 18px; background: var(--ink); color: var(--bone); border-top: 3px solid var(--ink); min-height: 104px; }
.site-info .face { width: 56px; height: 56px; border-radius: 14px; background: var(--bone); overflow: hidden; }
.site-info .face svg { display: block; width: 100%; height: 100%; }
.site-info .meta { font-size: 15px; color: var(--muted); }
.site-info .what { font-size: 19px; line-height: 1.35; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.site-info .more { color: #E8DED0; margin-top: 6px; overflow-wrap: anywhere; }
.site-info .link { min-height: 44px; }
.brick { cursor: pointer; }
.brick rect { fill: var(--ink); }
.brick .win { fill: var(--bone); }
.brick.gold rect { fill: var(--accent); }
.brick.gold .win { fill: var(--ink); }
.brick.on > rect:first-child { stroke: var(--accent); stroke-width: 8; }
.brick.gold.on > rect:first-child { stroke: var(--ink); }
.roof .flag, .city .flag { font-family: var(--mono); font-weight: 500; fill: var(--bone); }
.site .actor { cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .site-nav button:hover { background: var(--bone-2); }
  .tower .brick:hover > rect:first-child { stroke: var(--accent); stroke-width: 8; }
}
.crew-wrap { padding-top: 64px; }
/* the city: every tower so far, side by side; it scrolls sideways when the city outgrows the page */
.city-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.city-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.city-head p { color: var(--muted-b); font-size: 18px; }
.city { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r); height: 340px; overflow-x: auto; overflow-y: hidden; box-shadow: 8px 8px 0 var(--ink); }
.city svg { display: block; height: 100%; min-width: 100%; background: var(--paper); }
.city .lot { fill: none; stroke: var(--line-b); stroke-width: 6; stroke-dasharray: 22 18; }
.city .plot { font-family: var(--mono); fill: var(--muted-b); }
.city a.tower { cursor: pointer; }
.city a.tower:focus-visible { outline: none; }
.city a.tower:focus-visible .brick > rect:first-child { stroke: var(--accent); stroke-width: 6; }
.city-foot { color: var(--muted-b); font-size: 15px; margin: 18px 0 34px; }
.crewlive { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: start; }
.live-card { background: var(--paper); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 4px 18px 18px; min-width: 0; box-shadow: 6px 6px 0 var(--ink); }
.live-card .pic svg { display: block; width: 100%; height: auto; }
.live-card h3 { font-size: 30px; font-weight: 800; line-height: 1; }
.live-card .job { display: inline-block; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; background: var(--bone-2); border-radius: 999px; padding: 4px 10px; margin-top: 8px; }
.live-card .line { color: var(--muted-b); font-size: 16px; line-height: 1.4; margin-top: 10px; }
.live-card .now { margin-top: 12px; font-size: 16px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.live-card .now.rest { color: var(--muted-b); font-weight: 400; }
.live-card dl { margin: 12px 0 0; }
.live-card dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1.5px solid var(--line-b); font-size: 15px; }
.live-card dt { color: var(--muted-b); }
.live-card dd { margin: 0; font-family: var(--mono); font-size: 14px; text-align: right; }
.feed-wrap { padding-top: 64px; padding-bottom: 88px; }
.feed-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.feed-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: var(--bw) solid var(--ink); background: var(--paper); font-weight: 600; font-size: 15px; cursor: pointer; transition: transform 120ms var(--ease-out), background-color 140ms ease; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.chips button:active { transform: scale(0.97); }
.feed, .timeline { list-style: none; margin: 0; padding: 0; border-top: var(--bw) solid var(--ink); }
.feed li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1.5px solid var(--line-b); }
.feed .face { width: 56px; height: 56px; border-radius: 14px; background: var(--paper); border: var(--bw) solid var(--ink); overflow: hidden; }
.feed .face svg { display: block; width: 100%; height: 100%; }
.feed .meta, .timeline .meta { font-size: 15px; color: var(--muted-b); }
.feed .meta b { color: var(--ink); font-weight: 600; }
.feed .what, .timeline .what { font-size: 19px; line-height: 1.35; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.feed .more, .timeline .more { color: var(--muted-b); margin-top: 6px; overflow-wrap: anywhere; }
.timeline .meta { margin-top: 6px; }
.feed-more { margin-top: 20px; }
.empty-line { color: var(--muted-b); padding: 18px 0; }
.dark .empty-line { color: var(--muted); }
.timeline li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1.5px solid var(--line-b); }
.timeline time { font-family: var(--mono); font-size: 14px; color: var(--muted-b); padding-top: 5px; }
.grid.tight { padding-bottom: 0; }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--ink); color: var(--bone); padding: 92px 0 56px; margin-top: 24px; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 32px 64px; align-items: start; }
.foot .brand span { color: var(--bone); }
.foot p { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 34em; margin-top: 16px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-cols h3 { font-family: var(--mono); font-weight: 400; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.foot nav { display: grid; }
.foot nav a { font-weight: 600; font-size: 16px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot .legal { display: flex; gap: 18px; margin-top: 10px; }
.foot .legal a { font-size: 14px; color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) {
  .foot nav a:hover { color: var(--accent); }
  .foot .legal a:hover { color: var(--bone); }
}

/* ---------- app ---------- */
.app-head { padding: 48px 0 26px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.app-head h1 { font-size: clamp(42px, 5.6vw, 72px); }
.app-head p { color: var(--muted-b); max-width: 30em; font-size: 18px; line-height: 1.45; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; padding-bottom: 72px; }
.panel { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 24px; min-width: 0; }
.panel.wide { grid-column: 1 / -1; }
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 16px; }
.clips figure { margin: 0; display: grid; gap: 8px; }
.clips video { display: block; width: 100%; aspect-ratio: 9 / 16; border: var(--bw) solid var(--ink); border-radius: 18px; background: var(--bone); object-fit: cover; }
.clips figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted-b); }
.clips figcaption .link { color: var(--ink); font-weight: 600; }
.panel h2 { font-size: 28px; }
.panel .sub { color: var(--muted-b); font-size: 16px; line-height: 1.45; margin-top: 6px; max-width: 34em; }
.kv { margin: 18px 0 0; display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-top: 1.5px solid var(--line-b); }
.kv dt { color: var(--muted-b); font-size: 16px; }
.kv dd { margin: 0; font-family: var(--mono); font-size: 17px; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.kv dd.big { font-family: var(--display); font-weight: 800; font-size: 28px; }
.form { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.field { display: flex; align-items: center; min-width: 0; background: var(--bone); border: var(--bw) solid var(--ink); border-radius: 16px; padding: 0 6px 0 14px; min-height: 58px; transition: border-color 140ms ease, box-shadow 140ms ease; }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.25); }
.field input, .field select { flex: 1; width: 100%; min-width: 0; background: transparent; border: 0; outline: 0; font-family: var(--mono); font-size: 18px; padding: 10px 0; }
.field select { font-family: var(--font); font-size: 16px; }
.field select option { background: var(--paper); color: var(--ink); }
.field .unit { color: var(--muted-b); font-family: var(--mono); font-size: 14px; padding: 0 8px; white-space: nowrap; }
.field button.max { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 999px; min-height: 44px; padding: 0 12px; font-family: var(--mono); font-size: 13px; cursor: pointer; transition: transform 120ms var(--ease-out); }
.field button.max:active { transform: scale(0.97); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row .btn { flex: 1 1 140px; }
.hint { color: var(--muted-b); font-size: 15px; line-height: 1.45; }
.hint.bad { color: var(--ink); font-weight: 600; }
.keybox { margin-top: 14px; background: var(--bone); border: var(--bw) solid var(--ink); border-radius: 16px; padding: 12px 14px; font-family: var(--mono); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
textarea.prompt { width: 100%; min-height: 96px; resize: vertical; background: var(--bone); border: var(--bw) solid var(--ink); border-radius: 16px; padding: 12px 14px; font-size: 17px; line-height: 1.5; outline: 0; transition: border-color 140ms ease; }
textarea.prompt:focus { border-color: var(--accent); }
.reply { margin-top: 14px; padding: 16px 18px; border: var(--bw) solid var(--ink); border-left-width: 6px; border-left-color: var(--accent); background: var(--bone); border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 17px; line-height: 1.55; }
.reply .meta { display: block; margin-top: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted-b); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; }

/* skills on the app page */
.skills { list-style: none; margin: 18px 0 0; padding: 0; border-top: var(--bw) solid var(--ink); }
.skills li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 16px 0; border-bottom: 1.5px solid var(--line-b); align-items: start; }
.skills .what { font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.skills .what a { text-underline-offset: 3px; }
.skills .meta { color: var(--muted-b); font-size: 14px; margin-top: 4px; font-family: var(--mono); }
.skills .bar { height: 10px; border-radius: 5px; background: var(--bone-2); border: 1.5px solid var(--ink); overflow: hidden; margin-top: 10px; max-width: 420px; }
.skills .bar i { display: block; height: 100%; background: var(--accent); }
.skills .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: end; }
.skills .acts .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.form.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 32px; align-items: start; margin-top: 22px; }
.form.two h3 { font-size: 22px; margin-bottom: 8px; }
.form.two > div { display: grid; gap: 10px; }
@media (max-width: 860px) { .form.two { grid-template-columns: minmax(0, 1fr); } .skills li { grid-template-columns: minmax(0, 1fr); } .skills .acts { justify-content: start; } }

/* wallet chip, menu, modal */
.chip { position: relative; }
.chip > button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--paper); border: var(--bw) solid var(--ink); cursor: pointer; font-family: var(--mono); font-size: 14px; transition: transform 120ms var(--ease-out); }
.chip > button:active { transform: scale(0.97); }
.chip img { width: 18px; height: 18px; border-radius: 4px; }
.chip .net { color: var(--muted-b); }
.menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 18px; padding: 6px; box-shadow: 6px 6px 0 var(--ink); transform-origin: top right; transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out); }
.menu.out { opacity: 0; transform: scale(0.96); }
@starting-style { .menu { opacity: 0; transform: scale(0.96); } }
.menu a, .menu button { display: flex; width: 100%; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; background: transparent; border: 0; text-decoration: none; font-size: 16px; font-weight: 600; cursor: pointer; text-align: left; }
@media (hover: hover) and (pointer: fine) { .menu a:hover, .menu button:hover, .wallet-item:hover { background: var(--bone-2); } }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(42, 23, 16, 0.72); transition: opacity 160ms var(--ease-out); }
.modal.out { opacity: 0; }
.modal .sheet { width: 100%; max-width: 420px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--r); padding: 22px; box-shadow: 8px 8px 0 var(--accent); transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out); }
.modal.out .sheet { transform: scale(0.97); opacity: 0; }
@starting-style { .modal { opacity: 0; } .modal .sheet { transform: scale(0.96); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-head h2 { font-size: 26px; }
.x { width: 44px; height: 44px; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.x svg { width: 18px; height: 18px; }
.wallet-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 10px; border-radius: 14px; background: transparent; border: 0; cursor: pointer; text-align: left; text-decoration: none; font-weight: 600; font-size: 17px; }
.wallet-item img, .wallet-item .ph { width: 32px; height: 32px; border-radius: 8px; background: var(--bone-2); flex: none; }
.wallet-item .sub { display: block; font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--muted-b); }
.empty { color: var(--muted-b); padding: 6px 10px 12px; }
.netwarn { background: var(--accent); color: var(--ink); border-bottom: var(--bw) solid var(--ink); }
.netwarn .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 10px; padding-bottom: 10px; font-weight: 600; }

/* toasts */
.toasts { position: fixed; z-index: 60; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(380px, calc(100vw - 40px)); }
.toast { background: var(--paper); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 16px; padding: 14px 16px; font-size: 16px; line-height: 1.4; font-weight: 600; box-shadow: 5px 5px 0 var(--ink); transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out); }
.toast.err { background: var(--ink); color: var(--bone); box-shadow: 5px 5px 0 var(--accent); }
.toast a { font-family: var(--mono); font-weight: 400; font-size: 13px; }
.toast.out { opacity: 0; transform: translateY(8px); }
@starting-style { .toast { opacity: 0; transform: translateY(100%); } }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 48px; padding-bottom: 96px; }
.toc { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 124px); overflow: auto; }
.toc a { display: flex; align-items: center; min-height: 40px; padding: 0 14px; border-left: 3px solid var(--line-b); text-decoration: none; color: var(--muted-b); font-weight: 600; font-size: 16px; }
.toc a.on { color: var(--ink); border-left-color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--ink); } }
.toc-m { display: none; }
.prose { max-width: 720px; min-width: 0; }
.prose h1 { font-size: clamp(44px, 6.4vw, 80px); margin-bottom: 22px; }
.prose > .lead { color: var(--muted-b); margin-bottom: 8px; }
.prose section { padding-top: 56px; scroll-margin-top: 84px; }
.prose h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 16px; }
.prose h3 { margin: 30px 0 10px; font-size: 22px; }
.prose p { margin: 0 0 16px; color: #3F2A21; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; color: #3F2A21; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose a { text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--bone-2); border-radius: 6px; padding: 2px 6px; overflow-wrap: anywhere; }
.prose pre.code { margin: 0 0 22px; }
.prose pre.code code { background: transparent; padding: 0; font-size: inherit; }
.prose .tbl-wrap { overflow-x: auto; margin: 0 0 18px; }
.prose .tbl td { font-size: 16px; padding: 14px 16px 14px 0; }
.prose .tbl td:first-child { font-family: var(--font); font-weight: 600; font-size: 16px; }
.crew { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.crew div { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 18px; padding: 4px 16px 4px 6px; }
.crew .pic svg { display: block; width: 100%; height: auto; }
.crew p { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.4; }
.note { border: var(--bw) solid var(--ink); border-left-width: 6px; border-left-color: var(--accent); border-radius: 14px; background: var(--paper); padding: 14px 18px; margin: 0 0 18px; }
.note p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .hero-top, .band-head, .use-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .lead { max-width: 34em; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crewlive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; }
  .toc { display: none; }
  .toc-m { display: block; margin-bottom: 8px; border: var(--bw) solid var(--ink); border-radius: 16px; background: var(--paper); }
  .toc-m summary { list-style: none; cursor: pointer; min-height: 48px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
  .toc-m summary::-webkit-details-marker { display: none; }
  .toc-m nav { padding: 0 8px 10px; display: grid; }
  .toc-m nav a { min-height: 44px; display: flex; align-items: center; padding: 0 10px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--muted-b); }
  .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .steps, .facts, .splitkey { grid-template-columns: minmax(0, 1fr); }
  .live .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live .cell { padding: 20px 16px 20px 0; }
  .live .cell + .cell { padding-left: 16px; }
  .live .cell:nth-child(3) { padding-left: 0; border-left: 0; }
  .live .cell:nth-child(n+3) { border-top: 1.5px solid var(--line-b); }
  .two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  /* phone header: the logo, the Menu button and the action on one row; the links open in a card */
  .menu-btn { display: flex; }
  .nav .links { display: none; position: absolute; left: var(--gut); right: var(--gut); top: calc(100% + 10px); flex-direction: column; align-items: stretch; gap: 2px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 20px; padding: 8px; box-shadow: 6px 6px 0 var(--ink); z-index: 30; }
  .nav.open .links { display: flex; }
  .nav .links a.txt { min-height: 48px; border-radius: 12px; font-size: 17px; }
}
@media (max-width: 640px) {
  :root { --gut: 18px; --r: 18px; }
  body { font-size: 16.5px; }
  .nav .wrap { height: 64px; gap: 10px; }
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: 23px; }
  .nav nav { gap: 6px; }
  .nav .btn.sm { padding: 0 12px; font-size: 15px; }
  .brand span { font-size: 21px; }
  .site-stage { height: auto; min-height: 0; aspect-ratio: 3 / 4; }
  .site-label { left: 16px; top: 14px; }
  .site-info { padding: 14px 16px 16px; }
  .site, .city, .live-card, .member { box-shadow: 5px 5px 0 var(--ink); }
  .dark .member { box-shadow: 5px 5px 0 var(--accent); }
  .city { height: 280px; }
  .crewlive { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .live-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 10px 16px 14px 6px; }
  .live-card .pic { grid-row: 1 / span 6; }
  .live-card dl, .live-card .now { grid-column: 2; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hero-team { display: block; }
  .lineup.all { display: none; }
  .lineup.shelf, .lineup.floor { display: block; }
  .lineup.shelf { border-bottom: 3px solid var(--ink); margin-bottom: 22px; }
  .lineup.floor { width: 92%; margin: 0 auto; }
  .team { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .member { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 4px 14px; padding: 6px 16px 10px 6px; }
  .member h3 { font-size: 28px; }
  .ticker-track span { font-size: 18px; padding: 11px 9px 11px 0; }
  .splitbar { height: 64px; box-shadow: 5px 5px 0 var(--ink); }
  .splitbar div { font-size: 20px; padding: 0 14px; }
  .splitbar .s3 { padding: 0 6px; font-size: 16px; }
  .tbl td:first-child { white-space: normal; }
  .tbl.stack thead { display: none; }
  .tbl.stack tr { display: block; padding: 14px 0; border-bottom: 1.5px solid var(--line-b); }
  .dark .tbl.stack tr { border-bottom-color: var(--line); }
  .tbl.stack td { display: block; border: 0; padding: 2px 0; }
  .tbl.stack td.addr { white-space: normal; overflow-wrap: anywhere; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .panel { padding: 20px 18px; }
  .row .btn { flex: 1 1 100%; }
  .app-head { padding-top: 30px; }
  .toasts { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
  .crew { grid-template-columns: minmax(0, 1fr); }
  pre.code { font-size: 13px; padding: 16px; }
  .drip, section.band.has-drip .drip { height: 36px; -webkit-mask-size: 180px 36px; mask-size: 180px 36px; }
}
@media (max-width: 365px) {
  .brand span { display: none; }   /* the narrowest phones keep the mark and the buttons */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lineup .m { animation: fade 300ms ease backwards; }
  .intro.out { transition: none; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .member .pic svg { transition: none; }
  .member:hover .pic svg { transform: none; }
  .btn, .chip > button, .field button.max, .site-nav button { transition: none; }
  .ticker-track { animation: none; }
}

/* ---- Fudge's posts: the home band and posts.html. Each post is a speech bubble next to Fudge. ---- */
section.band.posts-band { border-top: var(--bw) solid var(--line); padding-top: clamp(56px, 7vw, 96px); }
.posts-band .feed { margin-top: 8px; }
.posts-band .cta { margin-top: 28px; }
.posts { border-top: 0; }
.posts li { grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 10px 0; border-bottom: 0; align-items: start; }
.posts li > div { position: relative; background: var(--paper); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 20px; padding: 14px 20px 12px; }
.posts li > div::before { content: ""; position: absolute; left: -11px; top: 20px; width: 18px; height: 18px; background: var(--paper); border-left: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); transform: rotate(45deg); }
.posts .face { margin-top: 6px; }
.posts .meta { color: var(--muted-b); }
.posts .meta b { color: var(--ink); }
.posts .what { font-weight: 400; font-size: 19px; line-height: 1.45; }
.posts .meta a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.posts .link { min-height: 44px; font-size: 15px; }
.posts-wrap .feed { margin-top: 0; }
@media (max-width: 640px) {
  .posts .what { font-size: 17.5px; }
  .posts li { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .posts .face, .feed .face { width: 44px; height: 44px; border-radius: 12px; }
  .feed li { grid-template-columns: 44px minmax(0, 1fr); }
}

/* ---- the chat page: a key bar, the conversation, the form. Same type and lines as the app. ---- */
.chat-page { padding-bottom: 88px; }
.chat-bar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px 28px; align-items: start; padding: 24px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper); }
.chat-key .hint { margin-top: 10px; }
.chat-balance { display: flex; gap: 28px; margin: 0; }
.chat-balance dt { font-size: 13px; color: var(--muted-b); text-transform: uppercase; letter-spacing: 0.06em; }
.chat-balance dd { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: 26px; }
.chat-model { display: flex; flex-direction: column; gap: 8px; }
.chat-model span { font-size: 13px; color: var(--muted-b); text-transform: uppercase; letter-spacing: 0.06em; }
.chat-model select { min-height: 48px; width: 100%; max-width: 100%; padding: 0 14px; border-radius: 14px; border: var(--bw) solid var(--ink); background: var(--bone); color: var(--ink); font: inherit; font-size: 15px; }
.chat-box { margin-top: 28px; }
.chat-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.chat-log .msg { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; }
.chat-log .who { font-size: 13px; color: var(--muted-b); padding-top: 8px; }
.chat-log .who.face { width: 48px; height: 48px; border-radius: 14px; background: var(--paper); border: var(--bw) solid var(--ink); overflow: hidden; padding: 0; }
.chat-log .who.face svg { display: block; width: 100%; height: 100%; }
.chat-log .text { margin: 0; padding: 14px 18px; border-radius: 18px; font-size: 17px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; border: var(--bw) solid var(--ink); }
.chat-log .you .text { background: var(--ink); color: var(--bone); }
.chat-log .bot .text { background: var(--paper); color: var(--ink); }
.chat-log .bot.err .text { border-color: var(--accent); border-left-width: 6px; color: var(--ink); }
.chat-log .typing:empty::after { content: "..."; color: var(--muted-b); }
.chat-form { margin-top: 22px; }
.chat-form textarea { width: 100%; min-height: 96px; padding: 14px 16px; border-radius: 18px; border: var(--bw) solid var(--ink); background: var(--paper); color: var(--ink); font: inherit; font-size: 17px; line-height: 1.5; resize: vertical; }
.chat-form textarea:focus { outline: none; border-color: var(--accent); }
.chat-form textarea:disabled { opacity: 0.5; }
.chat-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .chat-bar { grid-template-columns: 1fr; }
}

/* ---- the control room (admin.html): the owner's page. Login card, stats, approvals, one card per brownie, the log. ---- */
.admin-page { padding-bottom: 88px; }
.admin-login-card { max-width: 560px; padding: 28px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
.admin-login-card h2 { font-size: 30px; margin-bottom: 10px; }
.admin-login-card p { color: var(--muted-b); }
.admin-code-form { display: flex; gap: 12px; margin: 18px 0 14px; flex-wrap: wrap; }
.admin-code-form input { flex: 1 1 180px; min-width: 0; width: 100%; min-height: 50px; padding: 0 16px; border-radius: 999px; border: var(--bw) solid var(--ink); background: var(--bone); color: var(--ink); font-family: var(--mono); font-size: 22px; letter-spacing: 0.2em; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); font: inherit; cursor: pointer; min-height: 44px; }
.admin-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 18px 28px; padding: 22px 24px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper); }
.admin-stats { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 0; }
.admin-stats dt { font-size: 12px; color: var(--muted-b); text-transform: uppercase; letter-spacing: 0.06em; }
.admin-stats dd { margin: 4px 0 0; font-family: var(--mono); font-size: 18px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-h { font-size: 26px; margin: 34px 0 14px; }
.admin-approvals { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.admin-approvals li { padding: 16px 18px; border: var(--bw) solid var(--ink); border-radius: 18px; background: var(--paper); }
.admin-approvals .meta { color: var(--muted-b); font-size: 14px; }
.admin-approvals .what { font-size: 18px; font-weight: 600; margin: 4px 0 8px; overflow-wrap: anywhere; }
.admin-approvals .flag { display: inline-block; padding: 1px 9px; border: 2px solid var(--ink); border-radius: 999px; font-size: 12px; font-weight: 700; background: #FF5A1F; color: var(--ink); vertical-align: 2px; }
.admin-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.admin-card { padding: 18px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper); display: flex; flex-direction: column; gap: 12px; }
.admin-card.paused { opacity: 0.72; }
.admin-card.hidden-helper { border-style: dashed; }
.admin-card-head { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; }
.admin-card-head .face { width: 56px; height: 56px; border-radius: 14px; background: var(--bone); border: var(--bw) solid var(--ink); overflow: hidden; }
.admin-card-head .face svg { display: block; width: 100%; height: 100%; }
.admin-card-head h3 { font-size: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-card-head .role { color: var(--muted-b); font-size: 14px; line-height: 1.4; }
.badge { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); }
.admin-facts { margin: 0; display: grid; gap: 6px; }
.admin-facts div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.admin-facts dt { color: var(--muted-b); }
.admin-facts dd { margin: 0; overflow-wrap: anywhere; }
.admin-ask { display: flex; gap: 10px; }
.admin-ask input { flex: 1; min-height: 44px; padding: 0 14px; border-radius: 999px; border: var(--bw) solid var(--ink); background: var(--bone); color: var(--ink); font: inherit; font-size: 15px; }
.admin-log { margin-top: 0; max-height: 360px; overflow: auto; padding: 16px 18px; border: var(--bw) solid var(--ink); border-radius: 18px; background: var(--ink); font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: #E8DED0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .admin-facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---- the team (admin.html): every brownie on one sheet. What it does, public or hidden, and where it stands:
   cocoa for a problem, icing for the two states that need the owner, a plain outline for the rest. ---- */
.team-tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 14px 0 6px; border-bottom: 1.5px solid var(--line-b); }
.team-tab { background: none; border: 0; border-bottom: 4px solid transparent; margin-bottom: -1.5px; padding: 0 2px; min-height: 44px; font: inherit; font-weight: 600; font-size: 16px; color: var(--muted-b); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: color 140ms ease, border-color 140ms ease; }
.team-tab .n { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.team-tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .team-tab:hover { color: var(--ink); } }
.team-sheet { border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper); padding: 4px 20px; }
.team-row { display: grid; grid-template-columns: 44px minmax(0, 5fr) minmax(0, 6fr); gap: 6px 16px; align-items: start; padding: 16px 0; border-top: 1.5px solid var(--line-b); }
.team-row:first-child { border-top: 0; }
.team-row .face { width: 44px; height: 44px; border-radius: 12px; border: var(--bw) solid var(--ink); background: var(--bone); overflow: hidden; }
.team-row .face svg { display: block; width: 100%; height: 100%; }
.team-row.planned .face, .team-row.stopped .face { opacity: 0.55; }
.team-row .name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.team-row .name a, .team-row .name b { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); }
.team-row .name a { text-decoration: underline; text-decoration-color: var(--line-b); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .team-row .name a:hover { text-decoration-color: var(--accent); } }
.team-row .does { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted-b); max-width: 46em; }
.team-row .state { display: inline-block; padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: 14px; line-height: 1.3; background: var(--paper); color: var(--ink); }
.team-row .state.problem { background: var(--ink); color: var(--bone); }
.team-row .state.setup, .team-row .state.you { background: var(--accent); }
.team-row .state.stopped, .team-row .state.planned { border-style: dashed; color: var(--muted-b); }
.team-row .stand ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.team-row .stand li { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.team-row .stand li.l-problem { font-weight: 600; }
.team-row .stand li.l-note { color: var(--muted-b); }
.team-row .last { margin: 8px 0 0; font-size: 13px; color: var(--muted-b); }
.admin-card { scroll-margin-top: 92px; }
@media (max-width: 760px) {
  .team-sheet { padding: 2px 14px; }
  .team-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 0 20px; scrollbar-width: none; }
  .team-tabs::-webkit-scrollbar { display: none; }
  .team-tab { flex: none; margin-bottom: 0; }
  .team-row { grid-template-columns: 44px minmax(0, 1fr); }
  .team-row .stand { grid-column: 1 / -1; }
}

/* ---- the bounties (bounties.html): the open bounties, the pool, who was paid ---- */
.bounties-page { padding-bottom: 88px; }
.bounties { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 18px; }
.bounty { padding: 20px 22px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.bounty-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bounty-head .num { font-family: var(--mono); font-size: 14px; color: var(--muted-b); }
.bounty-head h2 { font-size: 22px; margin: 0; flex: 1 1 auto; }
.bounty-head .sugar { font-family: var(--mono); font-size: 15px; font-weight: 600; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--accent); }
.bounty p { margin: 0; color: var(--ink); line-height: 1.5; }
.bounty .meta { color: var(--muted-b); font-size: 13px; overflow-wrap: anywhere; }
.bounties-how, .bounties-won { margin-top: 40px; max-width: 820px; }
.bounties-how h2, .bounties-won h2 { font-size: 28px; margin-bottom: 12px; }
.bounties-how ol { padding-left: 22px; line-height: 1.6; }
.bounties-how li { margin-bottom: 8px; }
.bounties-how code { font-family: var(--mono); font-size: 14px; background: var(--paper); border: 1.5px solid var(--line-b); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.bounties-how a { color: var(--ink); font-weight: 600; }
.winners { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.winners li { padding: 10px 14px; border: 1.5px solid var(--line-b); border-radius: 14px; background: var(--paper); }

/* ---- the shop (shop.html): three things for sale, how to buy, the rules ---- */
.shop-page { padding-bottom: 88px; }
.shop-state { margin: 0 0 18px; font-family: var(--mono); font-size: 14px; color: var(--muted-b); }
.shop-state.open { color: var(--ink); }
.shop-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.shop-item { padding: 22px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.shop-item h2 { font-size: 24px; margin: 0; }
.shop-item p { margin: 0; color: var(--muted-b); line-height: 1.5; }
.shop-item .price { margin-top: auto; padding-top: 8px; color: var(--ink); font-family: var(--mono); }
.shop-item .price b { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.shop-item .price span { color: var(--muted-b); font-size: 14px; margin-left: 4px; }
.shop-item code { font-family: var(--mono); font-size: 13px; color: var(--muted-b); }
.shop-how, .shop-rules { margin-top: 40px; max-width: 820px; }
.shop-how h2, .shop-rules h2 { font-size: 28px; margin-bottom: 12px; }
.shop-how ol, .shop-rules ul { padding-left: 22px; line-height: 1.6; color: var(--ink); }
.shop-how li, .shop-rules li { margin-bottom: 8px; }
.shop-how li code { font-family: var(--mono); font-size: 14px; background: var(--paper); border: 1.5px solid var(--line-b); border-radius: 6px; padding: 1px 6px; }
.shop-how pre { margin: 18px 0; padding: 16px 18px; border: var(--bw) solid var(--ink); border-radius: 18px; background: var(--ink); color: #E8DED0; font-family: var(--mono); font-size: 13px; line-height: 1.55; overflow-x: auto; }
.shop-how pre code { font-family: inherit; font-size: inherit; background: none; border: 0; padding: 0; color: inherit; }
.shop-how p a { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .shop-items { grid-template-columns: 1fr; } }

/* ---- the bill (admin.html): what each brownie spent against its cap, the two balances, two weeks of days ---- */
.badge.hot { background: var(--accent); }
.bill { display: grid; gap: 18px; }
.bill-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bill-tile { padding: 16px 18px; border: var(--bw) solid var(--ink); border-radius: 18px; background: var(--paper); display: grid; gap: 4px; align-content: start; }
.bill-tile .k { font-size: 12px; color: var(--muted-b); text-transform: uppercase; letter-spacing: 0.06em; }
.bill-tile .v { font-family: var(--mono); font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; }
.bill-tile .sub { font-size: 13px; line-height: 1.45; color: var(--muted-b); }
.bill-tile .admin-row { margin-top: 6px; }
.bill-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; align-items: start; }
.bill-card { padding: 18px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper); }
.bill-card h3 { font-size: 20px; margin: 0 0 12px; }
.bill-key + h3 { margin-top: 22px; }
.bill-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 14px 0; border-top: 1.5px solid var(--line-b); }
.bill-row:first-child { border-top: 0; padding-top: 0; }
.bill-row.paused { opacity: 0.72; }
.bill-row .face { width: 44px; height: 44px; border-radius: 12px; border: var(--bw) solid var(--ink); background: var(--bone); overflow: hidden; align-self: start; }
.bill-row .face svg { display: block; width: 100%; height: 100%; }
.bill-row .who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.bill-row .who b { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.bill-row .who .meta { font-size: 13px; color: var(--muted-b); }
.bill-row .nums { font-family: var(--mono); font-size: 15px; text-align: right; white-space: nowrap; }
.bill-row .nums small { display: block; font-size: 12px; color: var(--muted-b); font-family: var(--font); }
.bill-row .track, .bill-row .sub { grid-column: 2 / span 2; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.bill-row .sub { font-size: 13px; color: var(--muted-b); }
.bill-row .sub .bill-bar { width: 120px; height: 8px; }
.bill-row .pct { font-family: var(--mono); font-size: 13px; min-width: 38px; text-align: right; }
.bill-row .btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; box-shadow: 0 3px 0 var(--ink); }
.bill-row .btn.sm:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.bill-bar { height: 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--bone); overflow: hidden; }
.bill-bar i { display: block; height: 100%; background: var(--ink); transform-origin: left center; transform: scaleX(var(--p, 0)); transition: transform 250ms var(--ease-out); }
.bill-bar.near i { background: var(--accent); }
.bill-bar.capped i { background: var(--accent-2); }
.bill-bar.none { border-style: dashed; }
.bill-chart { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; height: 160px; padding-top: 20px; }
.bill-col { position: relative; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) 18px; }
.bill-col .stack { display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; }
.bill-col i { display: block; }
.bill-col .v { background: var(--accent); border: 1.5px solid var(--ink); border-bottom: 0; }
.bill-col .a { background: var(--ink); border: 1.5px solid var(--ink); }
.bill-col .d { font-family: var(--mono); font-size: 11px; color: var(--muted-b); text-align: center; line-height: 18px; }
.bill-col.today .d { color: var(--ink); font-weight: 600; }
.bill-col .amt { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.bill-key { display: flex; gap: 16px; font-size: 13px; color: var(--muted-b); margin: 10px 0 0; }
.bill-key i { display: inline-block; width: 12px; height: 12px; border: 1.5px solid var(--ink); vertical-align: -2px; margin-right: 6px; }
.bill-key .a i { background: var(--ink); }
.bill-key .v i { background: var(--accent); }
.bill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bill-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.bill-list .name, .bill-list .num { font-family: var(--mono); font-size: 13px; }
.bill-list .name { overflow-wrap: anywhere; }
.bill-list .num { white-space: nowrap; }
.bill-list .bill-bar { grid-column: 1 / -1; height: 8px; }
.bill-recent summary { cursor: pointer; font-family: var(--display); font-size: 20px; font-weight: 700; }
.bill-table-wrap { overflow-x: auto; margin-top: 12px; }
.bill-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; }
.bill-table th { text-align: left; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--muted-b); text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 12px 6px 0; border-bottom: 1.5px solid var(--ink); }
.bill-table td { padding: 7px 12px 7px 0; border-bottom: 1px solid var(--line-b); white-space: nowrap; vertical-align: top; }
.bill-table td.num, .bill-table th.num { text-align: right; }
.bill-table td.note { white-space: normal; font-family: var(--font); color: var(--muted-b); min-width: 180px; }
@media (max-width: 980px) {
  .bill-grid { grid-template-columns: 1fr; }
  .bill-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bill-tiles { gap: 10px; }
  .bill-tile { padding: 14px; }
  .bill-tile .v { font-size: 22px; }
  .bill-row { grid-template-columns: 36px minmax(0, 1fr); }
  .bill-row .face { width: 36px; height: 36px; }
  .bill-row .nums { grid-column: 2; text-align: left; white-space: normal; }
  .bill-row .track, .bill-row .sub { grid-column: 1 / -1; }
  .bill-row .sub { grid-template-columns: minmax(0, 1fr) auto; }
  .bill-row .sub .bill-bar { grid-column: 1 / -1; width: auto; }
  .bill-row .btn.sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
  .bill-chart { gap: 3px; height: 130px; }
  .bill-col .d { font-size: 9.5px; }
}
@media (max-width: 420px) {
  .bill-tiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .bill-bar i { transition: none; }
}

/* ---- the Bakery (bakery.html, bake.html): holders' brownies. ---- */
.bakery-page, .bake-page { padding-bottom: 88px; }
.bakery-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.oven { color: var(--muted-b); font-size: 14px; padding-bottom: 10px; }
.bakery-how { padding: 8px 0 34px; }
.bakery-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bakery-how li { min-width: 0; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 22px 24px 24px; }
.bakery-how .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); border: var(--bw) solid var(--ink); font-family: var(--display); font-weight: 800; font-size: 19px; margin-bottom: 14px; }
.bakery-how h3 { font-size: 24px; }
.bakery-how p { color: var(--muted-b); margin-top: 8px; font-size: 16.5px; line-height: 1.5; max-width: 30em; }
.bakery-how .cta { margin-top: 30px; }
.shelf-wrap { padding-top: 40px; }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.baked-card { background: var(--paper); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 18px; min-width: 0; display: flex; flex-direction: column; gap: 12px; box-shadow: 6px 6px 0 var(--ink); }
.baked-head { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; }
.baked-card .pic { width: 84px; height: 84px; border-radius: 18px; background: var(--bone); border: var(--bw) solid var(--ink); overflow: hidden; }
.baked-card .pic svg { display: block; width: 100%; height: 100%; }
.baked-card h3 { font-size: 28px; font-weight: 800; line-height: 1; overflow-wrap: anywhere; }
.baked-card .job { display: block; font-family: var(--mono); font-size: 13px; color: var(--muted-b); margin-top: 6px; overflow-wrap: anywhere; }
.baked-card .line { font-size: 17px; line-height: 1.4; font-weight: 600; }
.baked-card .role { color: var(--muted-b); font-size: 16px; line-height: 1.45; }
.jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.jobs li { font-size: 15px; line-height: 1.4; padding-left: 16px; position: relative; }
.jobs li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); border: 1.5px solid var(--ink); }
.baked-card .count { font-size: 13px; color: var(--muted-b); }
.baked-card .latest { border-top: 1.5px solid var(--line-b); padding-top: 12px; }
.baked-card .latest .meta { font-size: 13px; color: var(--muted-b); font-family: var(--mono); }
.baked-card .latest .what { font-size: 15.5px; line-height: 1.45; margin-top: 4px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
/* the gate */
.bake-login-card { max-width: 560px; padding: 28px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
.bake-login-card h2 { font-size: 30px; margin-bottom: 10px; }
.bake-login-card p { color: var(--muted-b); }
.bake-login-card .row { margin-top: 18px; }
.bake-login-card .hint { margin-top: 12px; }
/* the holder's brownie */
.mine-head { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: center; padding: 24px 0; }
.mine-head .face { width: 112px; height: 112px; border-radius: 24px; background: var(--paper); border: var(--bw) solid var(--ink); overflow: hidden; }
.mine-head .face svg { display: block; width: 100%; height: 100%; }
.mine-head h2 { font-size: clamp(32px, 4vw, 48px); overflow-wrap: anywhere; }
.mine-role { font-size: 18px; margin-top: 6px; line-height: 1.4; }
.mine-line { color: var(--muted-b); font-size: 16px; margin-top: 4px; }
.mine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.mine-grid .panel h3 { font-size: 24px; }
.mine-grid .jobs { margin-top: 14px; }
.mine-grid .kv { margin-top: 14px; }
.mine-grid .sub { margin-top: 8px; }
.mine-grid .row { margin-top: 16px; }
.mine-grid .row .btn { flex: 0 1 auto; }
.mine-grid .hint { margin-top: 12px; }
.ask { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.ask input { flex: 1 1 240px; min-width: 0; min-height: 50px; padding: 0 16px; border-radius: 999px; border: var(--bw) solid var(--ink); background: var(--bone); color: var(--ink); font: inherit; font-size: 16px; }
.ask input:focus { outline: none; border-color: var(--accent); }
.ask input:disabled { opacity: 0.5; }
.ask .btn { min-height: 50px; }
.mine-feed { margin-top: 14px; }
.mine-feed li { grid-template-columns: 48px minmax(0, 1fr); }
.mine-feed .face { width: 48px; height: 48px; }
.mine-feed .what { font-size: 17px; font-weight: 500; white-space: pre-wrap; }
.mine-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 22px; border-top: var(--bw) solid var(--ink); }
/* the form */
.bake-form-wrap { padding-top: 10px; }
.bake-status { font-size: 18px; color: var(--muted-b); }
.bake-status.ok { color: var(--ink); }
.bake-form { margin-top: 22px; }
.bake-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px 48px; align-items: start; }
.bake-col { display: grid; gap: 16px; min-width: 0; }
.bake-col h2 { font-size: 28px; }
.bake-col > .hint { margin-top: -6px; }
.lbl { display: grid; gap: 6px; min-width: 0; }
.lbl > span { font-size: 13px; color: var(--muted-b); text-transform: uppercase; letter-spacing: 0.06em; }
.lbl > input, .lbl > select { width: 100%; min-height: 52px; padding: 0 14px; border-radius: 14px; border: var(--bw) solid var(--ink); background: var(--paper); color: var(--ink); font: inherit; font-size: 17px; }
.lbl > input:focus, .lbl > select:focus, .lbl > textarea:focus { outline: none; border-color: var(--accent); }
.lbl > select option { background: var(--paper); color: var(--ink); }
.lbl small { font-size: 14px; color: var(--muted-b); line-height: 1.4; }
.lbl .field { min-height: 52px; border-radius: 14px; background: var(--paper); }
.job-menu { list-style: none; margin: 0; padding: 0; border-top: var(--bw) solid var(--ink); }
.job-menu li.job { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 14px; align-items: center; padding: 14px 0; border-bottom: 1.5px solid var(--line-b); }
.job-pick { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; min-height: 44px; }
.job-pick input { width: 22px; height: 22px; margin: 4px 0 0; accent-color: var(--accent); cursor: pointer; }
.job-text { display: grid; gap: 2px; min-width: 0; }
.job-text b { font-size: 17px; font-weight: 600; }
.job-text span { color: var(--muted-b); font-size: 14.5px; line-height: 1.4; }
.job-hour { min-height: 44px; padding: 0 12px; border-radius: 999px; border: var(--bw) solid var(--ink); background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; font-family: var(--mono); }
.job-hour option { background: var(--paper); color: var(--ink); }
.job-where { font-size: 12px; color: var(--muted-b); white-space: nowrap; }
.own-job { border-bottom: 1.5px solid var(--line-b); }
.own-job summary { min-height: 52px; display: flex; align-items: center; cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; }
.own-job summary::-webkit-details-marker { display: none; }
.own-job summary::before { content: "+"; display: inline-block; width: 22px; color: var(--accent-2); font-family: var(--mono); font-weight: 500; }
.own-job[open] summary::before { content: "-"; }
.own-fields { display: grid; gap: 14px; padding: 4px 0 18px; }
.own-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 14px; }
.bake-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; padding-top: 22px; border-top: var(--bw) solid var(--ink); }
.bake-actions .hint { max-width: 40em; }
@media (max-width: 960px) {
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bake-cols { grid-template-columns: minmax(0, 1fr); }
  .mine-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .bakery-how ol { grid-template-columns: minmax(0, 1fr); }
  .shelf { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .baked-card { box-shadow: 5px 5px 0 var(--ink); }
  .mine-head { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .mine-head .face { width: 84px; height: 84px; }
  .job-menu li.job { grid-template-columns: minmax(0, 1fr) auto; }
  .job-where { grid-column: 1 / -1; }
  .own-row { grid-template-columns: minmax(0, 1fr); }
  .mine-grid .row .btn, .mine-foot .btn { flex: 1 1 100%; }
}

/* ---- privacy and terms ---- */
.legal-page { padding-top: 44px; padding-bottom: 88px; }
.legal-page .prose section { padding-top: 36px; }
.legal-page .prose h2 { font-size: clamp(24px, 2.8vw, 32px); }

/* ---- the board ---- */
.jobs-page { padding-bottom: 88px; }
.board-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 6px 0 26px; }
.board-totals div { border: var(--bw) solid var(--ink); border-radius: 18px; padding: 14px 16px; min-width: 0; background: var(--paper); }
.board-totals dt { font-family: var(--mono); font-size: 13px; color: var(--muted-b); }
.board-totals dd { font-family: var(--display); font-size: 30px; font-weight: 800; margin: 4px 0 0; line-height: 1; }
.board-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.board-filters button { font: inherit; font-size: 14px; font-weight: 600; min-height: 44px; padding: 0 14px; border-radius: 999px; border: var(--bw) solid var(--ink); background: var(--paper); color: inherit; cursor: pointer; }
.board-filters button[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; padding-bottom: 40px; }
.job-card { border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; background: var(--paper); }
.job-card.done { opacity: 0.7; }
.job-card .tags { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; }
.job-card .tags span { border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px 9px; }
.job-card .tags .state { background: var(--accent); color: var(--ink); }
.job-card h3 { font-size: 23px; line-height: 1.15; overflow-wrap: anywhere; }
.job-card h3 a { text-decoration: none; color: inherit; }
.job-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.job-card .nums { font-family: var(--mono); font-size: 13px; color: var(--muted-b); line-height: 1.5; }
.job-card .why, .job-card .next { font-size: 15.5px; line-height: 1.45; }
.job-card .next b { font-weight: 600; }
.job-card .you { font-size: 15px; line-height: 1.4; padding: 10px 12px; border-radius: 14px; background: var(--ink); color: var(--bone); }
.job-card .log { font-family: var(--mono); font-size: 12.5px; color: var(--muted-b); border-top: 1.5px solid var(--line-b); padding-top: 8px; overflow-wrap: anywhere; }
.admin-job .meta b { font-weight: 600; }
@media (max-width: 720px) { .board { grid-template-columns: 1fr; } .board-totals dd { font-size: 26px; } }

/* ---- the studio ---- */
.studio-page { padding-bottom: 88px; }
.studio-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 22px; margin-bottom: 36px; }
.studio-card { border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 24px; min-width: 0; background: var(--paper); }
.studio-card h2 { font-size: 28px; margin-bottom: 14px; }
.studio-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: 17px; line-height: 1.45; }
.studio-list li::marker { color: var(--accent-2); font-weight: 700; }
.studio-price { background: var(--ink); color: var(--bone); box-shadow: 8px 8px 0 var(--accent); }
.studio-price .big { font-family: var(--display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; line-height: 1.05; margin-top: 10px; }
.studio-price .muted { color: var(--muted); font-size: 15.5px; line-height: 1.45; margin-top: 6px; }
.studio-how { margin-bottom: 36px; }
.studio-how h2, .studio-ask h2 { font-size: 32px; margin-bottom: 14px; }
.studio-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.studio-steps li { counter-increment: step; border: var(--bw) solid var(--ink); border-radius: 18px; padding: 18px 18px 18px 62px; position: relative; font-size: 16.5px; line-height: 1.5; background: var(--paper); }
.studio-steps li::before { content: counter(step); position: absolute; left: 16px; top: 15px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); border: var(--bw) solid var(--ink); font-family: var(--display); font-weight: 800; font-size: 16px; display: grid; place-items: center; }
.studio-steps b { font-weight: 700; }
.studio-ask .field { display: grid; gap: 6px; }
.studio-ask .lbl { font-family: var(--mono); font-size: 13px; color: var(--muted-b); }
.studio-ask input, .studio-ask textarea { width: 100%; font: inherit; font-size: 16px; line-height: 1.4; padding: 12px 14px; border-radius: 14px; border: var(--bw) solid var(--ink); background: var(--paper); color: inherit; }
.studio-ask input::placeholder, .studio-ask textarea::placeholder { color: var(--muted-b); opacity: 0.7; }
.studio-ask input:focus, .studio-ask textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.25); }
.studio-ask .row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.studio-ask .row .btn { flex: 0 0 auto; width: auto; }
.studio-ask .field { border: 0; padding: 0; background: transparent; min-height: 0; }
.studio-how .muted { color: var(--muted-b); margin-top: 14px; font-size: 16px; }
.studio-ask { border-top: var(--bw) solid var(--ink); padding: 32px 0 48px; }
.studio-ask .form { max-width: 640px; display: grid; gap: 14px; }
.studio-ask .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 820px) { .studio-grid, .studio-steps { grid-template-columns: 1fr; } }

/* ---------- motion: small, and only where it says something ---------- */
/* cards come in as the page is scrolled to them (ui.js marks them; without the script nothing is hidden) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
.splitbar.reveal { opacity: 1; transform: none; }
.splitbar.reveal div { clip-path: inset(0 100% 0 0); transition: clip-path 700ms var(--ease-out); }
.splitbar.reveal div:nth-child(2) { transition-delay: 140ms; }
.splitbar.reveal div:nth-child(3) { transition-delay: 280ms; }
.splitbar.reveal.in div { clip-path: inset(0 0 0 0); }
/* the tax drawing fills the way the tax flows: left to right on wide screens, top to bottom on phones, once */
.taxflow.reveal { opacity: 1; transform: none; }
.taxflow.reveal svg { clip-path: inset(0 100% 0 0); transition: clip-path 900ms var(--ease-out); }
.taxflow.reveal .pipe-phone { clip-path: inset(0 0 100% 0); }
.taxflow.reveal.in svg { clip-path: inset(0 0 0 0); }
.taxflow.reveal .pipe-caption { opacity: 0; transition: opacity 400ms var(--ease-out) 500ms; }
.taxflow.reveal.in .pipe-caption { opacity: 1; }
/* the sugar cube of a title drops into place */
h1 .dot, .intro-word .dot { animation: cube-drop 700ms cubic-bezier(0.34, 1.56, 0.64, 1) 250ms backwards; }
@keyframes cube-drop { from { transform: translateY(-0.7em); opacity: 0; } }
/* the brownies' eyes follow the pointer (ui.js moves .pupils), and a clicked brownie jumps */
[data-mascot] .pupils { transition: transform 260ms var(--ease-out); }
.jump, .lineup .m.jump { animation: jump 560ms cubic-bezier(0.34, 1.56, 0.64, 1); transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes jump { 0% { transform: none; } 35% { transform: translateY(-9%) scale(0.98, 1.05); } 65% { transform: translateY(0) scale(1.05, 0.94); } 100% { transform: none; } }
/* new lines in a feed slide in */
.feed li { transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
@starting-style { .feed li { opacity: 0; transform: translateY(10px); } }
/* the mark tips its head, a button lifts before it is pressed */
.brand img { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .brand:hover img { transform: rotate(-10deg) scale(1.06); }
  .btn:not([disabled]):hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
  .dark .btn:not([disabled]):hover { box-shadow: 0 6px 0 var(--bone); }
  .dark .btn.bone-btn:not([disabled]):hover { box-shadow: 0 6px 0 var(--accent); }
  .btn:not([disabled]):active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
  .dark .btn:not([disabled]):active { box-shadow: 0 0 0 var(--bone); }
  .dark .btn.bone-btn:not([disabled]):active { box-shadow: 0 0 0 var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .splitbar.reveal div { clip-path: none; transition: none; }
  .taxflow.reveal svg, .taxflow.reveal .pipe-phone { clip-path: none; transition: none; }
  .taxflow.reveal .pipe-caption { opacity: 1; transition: none; }
  h1 .dot, .intro-word .dot, .jump { animation: none; }
  [data-mascot] .pupils, .feed li, .brand img { transition: none; }
}

/* ---- the socials button in the header: a round "@" that opens the six networks ---- */
.socials { position: relative; flex: none; }
.menu-btn.at { display: inline-flex; flex-direction: row; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; color: var(--ink); padding-bottom: 2px; transition: transform 160ms var(--ease-out), background-color 140ms ease, color 140ms ease; }
.menu-btn.at:active { transform: scale(0.95); }
.socials.open .menu-btn.at { background: var(--ink); color: var(--bone); }
.social-menu { position: absolute; right: 0; top: calc(100% + 12px); width: 276px; max-width: calc(100vw - 2 * var(--gut)); background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 20px; padding: 8px; box-shadow: 6px 6px 0 var(--ink); z-index: 31; transform-origin: top right; opacity: 0; transform: translateY(-6px) scale(0.98); visibility: hidden; transition: opacity 120ms ease, transform 120ms var(--ease-out), visibility 0s 120ms; }
.socials.open .social-menu { opacity: 1; transform: none; visibility: visible; transition: opacity 160ms ease, transform 180ms var(--ease-out), visibility 0s; }
.social-menu a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; transition: background-color 120ms ease, color 120ms ease; }
.social-menu a svg { width: 22px; height: 22px; flex: none; }
.social-menu a span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.social-menu a small { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted-b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.social-menu a:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .social-menu a:hover { background: var(--ink); color: var(--bone); }
  .social-menu a:hover small { color: var(--bone); opacity: 0.8; }
}
@media (max-width: 900px) { .socials { position: static; } .social-menu { right: var(--gut); top: calc(100% + 10px); width: min(300px, calc(100vw - 2 * var(--gut))); } }
@media (max-width: 420px) { .brand span { display: none; } }
@media (prefers-reduced-motion: reduce) { .social-menu { transform: none; transition: opacity 120ms ease, visibility 0s 120ms; } .menu-btn.at, .social-menu a { transition: none; } }

/* the heading of the tax section breaks into two even lines instead of leaving one word alone */
#tax .band-head h2 { text-wrap: balance; }

/* ---------- Biscotti, the reviewer (biscotti.html) ---------- */
/* the top: the name, what it does in three sentences, and Biscotti in front of a report */
.bis-hero { padding: clamp(36px, 5vw, 72px) 0 clamp(56px, 7vw, 104px); }
.bis-hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 56px; align-items: center; }
.bis-hero h1 { font-size: clamp(60px, 9.4vw, 138px); }
.bis-hero .lead { margin-top: 22px; max-width: 33em; }
.bis-hero .cta { margin-top: 30px; }
.bis-hero-art { position: relative; min-height: 380px; }
.bis-sheet { position: absolute; right: 2%; top: 0; width: min(310px, 64%); display: grid; gap: 9px; padding: 22px 22px 28px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--ink); transform: rotate(4deg); }
.bis-sheet-k { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-b); }
.bis-sheet b { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.1; margin-top: 8px; }
.bis-sheet i { display: block; height: 8px; border-radius: 4px; background: var(--bone-2); }
.bis-sheet i.short { width: 58%; }
.bis-pic { position: absolute; left: -4%; bottom: -8%; width: min(380px, 78%); }
.bis-pic svg { width: 100%; height: auto; }

/* the method: six steps on cocoa */
.bis-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bis-steps li { background: var(--ink-2); border: var(--bw) solid var(--line); border-radius: var(--r); padding: 22px 24px 26px; }
.bis-steps .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1; }
.bis-steps h3 { margin: 16px 0 8px; }
.bis-steps p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.5; }

/* the menu: five rows, each with what you send, what you get, the time and the price */
.bis-menu { border-top: var(--bw) solid var(--ink); }
.bis-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(96px, auto); gap: 18px 44px; align-items: start; padding: 30px 0; border-bottom: var(--bw) solid var(--ink); }
.bis-row h3 { font-size: 28px; line-height: 1.05; }
.bis-time { margin: 10px 0 0; font-family: var(--mono); font-size: 13px; color: var(--muted-b); }
.bis-row dl { margin: 0; display: grid; gap: 12px; }
.bis-row dl div { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 16px; }
.bis-row dt { padding-top: 4px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-b); }
.bis-row dd { margin: 0; font-size: 16.5px; line-height: 1.5; }
.bis-price { margin: 0; font-family: var(--mono); text-align: right; white-space: nowrap; line-height: 1.1; }
.bis-price b { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.bis-price span { display: block; margin-top: 4px; color: var(--muted-b); font-size: 13px; }
.bis-agents { margin: 26px 0 0; color: var(--muted-b); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }

/* what comes back, and who reads */
.bis-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px 80px; align-items: start; }
.bis-two h2, .bis-ask h2 { font-size: clamp(32px, 3.7vw, 50px); }
.bis-lede { margin: 16px 0 0; max-width: 31em; font-size: 18px; line-height: 1.5; color: var(--muted-b); }
.dark .bis-lede { color: var(--muted); }
.bis-parts { list-style: none; counter-reset: part; margin: 28px 0 0; padding: 0; columns: 2; column-gap: 36px; }
.bis-parts li { counter-increment: part; break-inside: avoid; display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-top: 1.5px solid var(--line); font-weight: 500; line-height: 1.3; }
.bis-parts li::before { content: counter(part, decimal-leading-zero); flex: none; font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--accent); }
.bis-panel { width: 100%; margin-top: 28px; border-collapse: collapse; }
.bis-panel td { padding: 10px 0; border-top: 1.5px solid var(--line); line-height: 1.3; }
.bis-panel td:first-child { font-weight: 600; }
.bis-panel td:last-child { text-align: right; font-family: var(--mono); font-size: 14px; color: var(--muted); }

/* the request: the form on the left, what to know before sending on the right */
.bis-ask { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px 64px; align-items: start; }
.bis-form { margin-top: 30px; max-width: 720px; display: grid; gap: 22px; }
.bis-kinds { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bis-kinds legend, .bis-lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 0; margin-bottom: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-b); }
.bis-lbl small { font-size: 13px; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.bis-kinds label { position: relative; cursor: pointer; }
.bis-kinds input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bis-kinds label span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 999px; font-weight: 600; font-size: 16px; transition: background-color 140ms ease, color 140ms ease, transform 140ms var(--ease-out); }
.bis-kinds input:checked + span { background: var(--ink); color: var(--bone); }
.bis-kinds input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.bis-kinds label:active span { transform: scale(0.97); }
.bis-field { display: block; min-width: 0; }
.bis-field textarea, .bis-field > input { display: block; width: 100%; padding: 14px 16px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 16px; font: inherit; font-size: 17px; line-height: 1.45; color: inherit; transition: border-color 140ms ease, box-shadow 140ms ease; }
.bis-field textarea { min-height: 170px; resize: vertical; }
.bis-field textarea::placeholder, .bis-field > input::placeholder { color: var(--muted-b); opacity: 0.75; }
.bis-field textarea:focus, .bis-field > input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.25); }
.bis-drop { position: relative; display: grid; gap: 4px; justify-items: center; padding: 24px 16px; background: var(--paper); border: var(--bw) dashed var(--ink); border-radius: 16px; text-align: center; cursor: pointer; transition: background-color 140ms ease, border-color 140ms ease; }
.bis-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.bis-drop b { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.bis-drop small { color: var(--muted-b); font-size: 14px; }
.bis-drop.over, .bis-drop:focus-within { background: var(--bone-2); border-color: var(--accent); }
.bis-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bis-files li { display: flex; align-items: center; gap: 12px; margin-top: 2px; padding: 7px 7px 7px 16px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 14px; font-size: 15.5px; transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
.bis-files li:first-child { margin-top: 10px; }
@starting-style { .bis-files li { opacity: 0; transform: translateY(6px); } }
.bis-files .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bis-files .sz { flex: none; font-family: var(--mono); font-size: 13px; color: var(--muted-b); }
.bis-files button { flex: none; min-height: 40px; padding: 0 14px; background: var(--bone); border: var(--bw) solid var(--ink); border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform 140ms var(--ease-out); }
.bis-files button:active { transform: scale(0.97); }
.bis-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bis-send { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.bis-send .hint { flex: 1 1 240px; }
.bis-notes { position: sticky; top: 96px; padding: 26px 26px 22px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: 8px 8px 0 var(--ink); }
.bis-notes h3 { margin-bottom: 16px; }
.bis-notes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 16px; line-height: 1.5; color: var(--muted-b); }
.bis-notes li b { color: var(--ink); font-weight: 600; }
.bis-mail { margin: 20px 0 0; padding-top: 14px; border-top: 1.5px solid var(--line-b); font-size: 16px; color: var(--muted-b); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }

@media (max-width: 1023px) {
  .bis-hero .wrap, .bis-two, .bis-ask { grid-template-columns: minmax(0, 1fr); }
  .bis-hero-art { min-height: 340px; max-width: 480px; }
  .bis-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bis-row { grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; }
  .bis-row dl { grid-column: 1 / -1; grid-row: 2; }
  .bis-notes { position: static; }
}
@media (max-width: 640px) {
  .bis-hero-art { min-height: 290px; }
  .bis-steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .bis-row { padding: 24px 0; }
  .bis-row h3 { font-size: 24px; }
  .bis-row dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .bis-price b { font-size: 28px; }
  .bis-parts { columns: 1; }
  .bis-kinds { gap: 8px; }
  .bis-kinds label span { min-height: 44px; padding: 0 14px; font-size: 15px; }
  .bis-notes { padding: 22px 20px 18px; box-shadow: 5px 5px 0 var(--ink); }
  .bis-send .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .bis-kinds label span, .bis-files li, .bis-files button, .bis-drop { transition: none; }
}
@media (max-width: 640px) { .bis-pic { width: 58%; left: -2%; bottom: -6%; } .bis-sheet { right: 0; width: 66%; } }
