/* Build with me: one input (link or job text), an agent log, then a one-page
   brief about Mau written for the reader, tinted with their colour (--brand). */
.bw { padding: 0 var(--pad); max-width: 1440px; margin: 0 auto; }
.bw section[hidden] { display: none; }

.bw-intro { padding: clamp(130px, 16vw, 230px) 0 clamp(56px, 7vw, 100px); max-width: 980px; }
.bw-intro h1 { margin-top: 18px; font-size: clamp(40px, 6vw, 96px); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.bw-lede { margin-top: clamp(20px, 2.4vw, 32px); max-width: 46ch; font-size: var(--t-lead); line-height: 1.35; letter-spacing: -.015em; color: var(--muted); }

.bw-form { margin-top: clamp(36px, 4.4vw, 60px); max-width: 680px; }
.bw-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.bw-tabs button { border: 1px solid var(--hair); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; color: var(--muted); transition: all .2s; }
.bw-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.bw-form label { display: block; margin-bottom: 10px; }
.bw-field { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--hair); border-radius: 14px; background: #fff; transition: border-color .25s, box-shadow .25s; }
.bw-field:focus-within, .bw-form textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20, 20, 20, .06); }
.bw-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 18px; letter-spacing: -.01em; padding: 10px 12px; color: var(--ink); }
.bw-form textarea { display: block; width: 100%; resize: vertical; min-height: 160px; border: 1px solid var(--hair); border-radius: 14px; padding: 14px 16px; font: inherit; font-size: 16px; line-height: 1.45; color: var(--ink); outline: 0; transition: border-color .25s, box-shadow .25s; }
.bw-go { flex: none; border: 0; border-radius: 10px; padding: 0 22px; background: var(--ink); color: #fff; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; transition: background .25s; }
.bw-go-block { margin-top: 10px; padding: 14px 22px; }
.bw-go:hover, .bw-go:focus-visible { background: var(--cobalt); }
.bw-go:disabled { opacity: .5; cursor: progress; }
.bw-msg { min-height: 1.4em; margin-top: 10px; color: #c2410c; }

.bw-run { padding: 24px 0 clamp(40px, 5vw, 72px); border-top: 1px solid var(--hair); scroll-margin-top: 80px; }
.bw-run-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bw-log { list-style: none; margin-top: 16px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; line-height: 1.6; }
.bw-log li { padding-left: 18px; position: relative; animation: bw-in .35s ease both; overflow-wrap: anywhere; }
.bw-log li::before { content: '›'; position: absolute; left: 0; color: var(--muted); }
.bw-log li:last-child { font-weight: 600; }
@keyframes bw-in { from { opacity: 0; transform: translateY(4px); } }

/* ---------- The generated page ---------- */
.bw-out { padding: clamp(32px, 4vw, 56px) 0 clamp(64px, 8vw, 120px); border-top: 1px solid var(--hair); scroll-margin-top: 64px; }
.bw-direct { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.bw-chip { border: 1px solid var(--hair); background: #fff; border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13px; cursor: pointer; transition: all .2s; }
.bw-chip:hover, .bw-chip:focus-visible { border-color: var(--ink); }
.bw-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.bw-direct-note { margin-left: auto; }

.bw-doc {
  --brand: #141414;
  border-radius: 24px; background: #fff; overflow: hidden;
  box-shadow: 0 1px 0 var(--hair), 0 30px 60px -30px rgba(0, 0, 0, .25);
  border: 1px solid var(--hair);
  animation: bw-in .5s ease both;
}
.bw-doc-head {
  padding: clamp(28px, 4vw, 64px) clamp(20px, 4vw, 64px) clamp(24px, 3vw, 44px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 10%, #fff), #fff);
  border-top: 6px solid var(--brand);
}
.bw-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: 8px; vertical-align: 1px; }
.bw-doc-title { margin-top: 14px; font-size: clamp(36px, 5.2vw, 84px); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.bw-doc-intro { margin-top: clamp(16px, 2vw, 26px); max-width: 52ch; display: flex; flex-direction: column; gap: .5em; font-size: var(--t-lead); line-height: 1.35; letter-spacing: -.015em; color: #3b3b40; }
.bw-ed { border-radius: 6px; outline: 0; transition: background .2s, box-shadow .2s; }
.bw-ed:hover { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.bw-ed:focus { background: color-mix(in srgb, var(--brand) 9%, #fff); box-shadow: 0 0 0 2px var(--brand); }

.bw-doc-sec { padding: clamp(24px, 3vw, 44px) clamp(20px, 4vw, 64px); border-top: 1px solid var(--hair); }
.bw-sec-label { margin-bottom: 16px; }
.bw-map-head { display: grid; grid-template-columns: 1fr 1.1fr 1.4fr; gap: var(--gap); padding-bottom: 10px; color: var(--muted); }
.bw-map-head span:last-child { grid-column: 2 / span 2; }
.bw-map { list-style: none; counter-reset: need; }
.bw-map li { display: grid; grid-template-columns: 1fr 1.1fr 1.4fr; gap: var(--gap); align-items: center; padding: 14px 0; border-top: 1px solid var(--hair); counter-increment: need; }
.bw-need { font-size: 19px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.bw-need::before { content: counter(need, decimal-leading-zero); display: block; font-size: 11px; color: var(--brand); font-weight: 600; letter-spacing: .04em; margin-bottom: 4px; }
.bw-proof { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.bw-proof img { width: 104px; height: 65px; object-fit: cover; border-radius: 8px; flex: none; background: var(--light); transition: transform .4s var(--ease, ease); }
.bw-proof:hover img { transform: scale(1.04); }
.bw-proof-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bw-proof b { font-weight: 600; }
.bw-proof em { font-style: normal; }
.bw-proof:hover b { color: var(--cobalt); }
.bw-ev { font-size: 15px; line-height: 1.45; color: #3b3b40; }

.bw-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.bw-case { display: flex; flex-direction: column; gap: 10px; }
.bw-case-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: var(--light); }
.bw-case h3 { font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.bw-case h3 a { color: inherit; text-decoration: none; }
.bw-case h3 a:hover { color: var(--cobalt); }
.bw-award { display: inline-block; vertical-align: 3px; margin-left: 4px; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.bw-case dl { display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; line-height: 1.45; color: #3b3b40; }
.bw-case dt { margin-top: 8px; color: var(--ink); }

.bw-doc-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.bw-days { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.45; }
.bw-days li { padding-left: 16px; position: relative; }
.bw-days li::before { content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.bw-xp { list-style: none; }
.bw-xp li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 4px 12px; padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 14.5px; }
.bw-xp span { color: var(--muted); }
.bw-xp em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }

.bw-doc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: clamp(24px, 3vw, 40px) clamp(20px, 4vw, 64px); border-top: 1px solid var(--hair); background: var(--light); }
.bw-book { display: inline-flex; align-items: center; padding: 14px 22px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 16px; font-weight: 500; text-decoration: none; transition: filter .25s; }
.bw-book:hover, .bw-book:focus-visible { filter: brightness(1.15); }
.bw-ghost { border: 1px solid var(--hair); background: #fff; border-radius: 999px; padding: 13px 18px; font: inherit; font-size: 15px; cursor: pointer; transition: border-color .2s; }
.bw-ghost:hover, .bw-ghost:focus-visible { border-color: var(--ink); }
.bw-note { flex-basis: 100%; margin-top: 4px; }

@media (max-width: 820px) {
  .bw-field input { font-size: 16px; }
  .bw-go { padding: 0 16px; }
  .bw-direct-note { margin-left: 0; flex-basis: 100%; }
  .bw-map-head { display: none; }
  .bw-map li { grid-template-columns: 1fr; gap: 10px; }
  .bw-doc-split { grid-template-columns: 1fr; }
  .bw-xp li { grid-template-columns: 1fr auto; }
  .bw-xp span { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .bw-log li, .bw-doc { animation: none; }
}
