/* Burble: black ink on paper. Almost colourless; hairlines instead of shadows; a serif that reads like a book. */
:root {
  --bg: #fbfaf7; --raised: #ffffff; --sunken: #f4f2ec;
  --fg: #191919; --muted: #6b6862; --faint: #a8a49b; --line: #e3dfd6; --line-strong: #cfcac0; --accent: #191919;
  --sans: 'Geist', system-ui, sans-serif; --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.19, .9, .22, 1);
  --store-bg: transparent; --store-fg: var(--fg); --store-border: 1px solid var(--fg); --store-radius: 6px;
}
body { background: var(--bg); }
::selection { background: rgba(25, 25, 25, .14); color: var(--fg); }
em { font-style: italic; }
.b-wrap { width: min(1120px, 100% - clamp(40px, 8vw, 112px)); margin-inline: auto; }

.b-sheets { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1s ease; will-change: transform; }
.b-sheets.is-ready { opacity: 1; }
.b-sheets canvas { width: 100%; height: 100%; }
.b-ink { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
main { position: relative; z-index: 2; }

/* Navigation */
.b-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px clamp(20px, 4vw, 44px); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.b-nav.is-scrolled { background: rgba(251, 250, 247, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.b-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; }
.b-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: var(--fg); color: var(--bg); font-family: var(--sans); font-size: 1.05rem; font-weight: 800; }
.b-nav nav { display: flex; gap: 2px; }
.b-nav nav a { padding: 8px 13px; border-radius: 6px; text-decoration: none; font-size: .92rem; color: var(--muted); transition: color .18s, background .18s; }
.b-nav nav a:hover { color: var(--fg); background: rgba(25, 25, 25, .06); }
.b-nav-end { display: flex; align-items: center; gap: 10px; }

.b-btn { display: inline-flex; white-space: nowrap; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 6px; background: var(--fg); color: var(--bg); font-weight: 600; letter-spacing: -.01em; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.b-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 0 -6px rgba(25, 25, 25, .22); }
.b-btn-small { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.store:hover { background: var(--fg); color: var(--bg); }
.b-text-link { font-weight: 500; text-underline-offset: 4px; }

/* Type */
.b-display { font-family: var(--serif); font-weight: 500; font-size: clamp(3.1rem, 8.6vw, 8.2rem); line-height: .96; letter-spacing: -.04em; }
.b-headline { font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem, 4.8vw, 4.2rem); line-height: 1.02; letter-spacing: -.035em; }
.b-display em, .b-headline em { font-weight: 400; }
.b-eyebrow, .b-kicker, .b-step-no, .b-hint { font-size: .92rem; font-weight: 500; color: var(--muted); }
.b-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 60px); }

/* Hero */
.b-hero { position: relative; min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: 24px; padding: 110px clamp(20px, 5vw, 60px) 90px; text-align: center; }
.b-hero .b-display { max-width: 12.5em; }
.b-underline { width: min(46vw, 560px); height: 30px; margin-top: -22px; overflow: visible; }
.b-underline path { fill: none; stroke: var(--fg); stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: b-draw 1.1s cubic-bezier(.6, 0, .3, 1) 1.1s forwards; }
@keyframes b-draw { to { stroke-dashoffset: 0; } }
html:not(.js) .b-underline path { stroke-dashoffset: 0; }
.b-lead { max-width: 33em; font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: var(--muted); }
.b-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.b-fine { font-size: .92rem; color: var(--muted); }
.b-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--faint); }
@media (hover: none) { .b-hint { display: none; } }

/* Filing story: a tall section with a pinned stage. */
.b-filing { position: relative; height: 360vh; }
.b-pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(24px, 5vw, 80px); width: min(1180px, 100% - clamp(40px, 8vw, 112px)); margin-inline: auto; }
.b-steps { position: relative; grid-column: 1; grid-row: 1; min-height: 22rem; }
.b-step { position: absolute; inset: 0; display: grid; align-content: center; gap: 20px; opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .6s var(--ease); pointer-events: none; }
.b-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.b-step > p:last-child { max-width: 30em; font-size: clamp(1.04rem, 1.4vw, 1.2rem); color: var(--muted); }
.b-stacks { position: relative; grid-column: 2; grid-row: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 3vw, 40px); align-items: end; padding-top: 70px; }
.b-stack { position: relative; aspect-ratio: 1 / 1.34; border: 1.5px dashed var(--line-strong); border-radius: 4px; opacity: calc(.25 + var(--p, 0) * 3); }
.b-stack span { position: absolute; left: 0; right: 0; top: calc(100% + 16px); text-align: center; font-family: var(--serif); font-size: 1.25rem; font-style: italic; opacity: 0; transform: translateY(-6px); transition: opacity .5s ease, transform .6s var(--ease); }
[data-stage="1"] .b-stack span, [data-stage="2"] .b-stack span { opacity: 1; transform: none; }
.b-search { position: absolute; left: 50%; top: 0; transform: translate(-50%, 10px); display: flex; align-items: center; gap: 10px; min-width: 240px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--raised); font-size: 1rem; opacity: 0; transition: opacity .45s ease, transform .6s var(--ease); z-index: 3; }
.b-search .icon { color: var(--muted); }
.b-search i { width: 1.5px; height: 1.2em; background: var(--fg); animation: b-blink 1s steps(1) infinite; margin-left: -6px; }
@keyframes b-blink { 50% { opacity: 0; } }
[data-stage="2"] .b-search { opacity: 1; transform: translate(-50%, 0); }
.b-dots { position: absolute; left: 0; bottom: 34px; display: flex; gap: 22px; font-size: .92rem; font-weight: 500; color: var(--faint); }
.b-dots li { position: relative; padding-top: 12px; transition: color .3s; }
.b-dots li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.b-dots li.is-active { color: var(--fg); }
.b-dots li.is-active::before { background: var(--fg); }

/* Try it */
.b-try { padding: clamp(80px, 10vw, 150px) 0; border-top: 1px solid var(--line); background: var(--bg); }
.b-demo { display: grid; grid-template-columns: 1.1fr .9fr; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--raised); overflow: hidden; }
.b-capture { display: grid; align-content: start; gap: 18px; padding: clamp(22px, 3.4vw, 44px); }
.b-capture label, .b-vault-title { font-size: .92rem; font-weight: 500; color: var(--muted); }
.b-field { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border: 1px solid var(--line-strong); border-radius: 999px; transition: border-color .18s, box-shadow .18s; }
.b-field:focus-within { border-color: var(--fg); box-shadow: 0 0 0 3px rgba(25, 25, 25, .08); }
.b-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-family: var(--serif); font-size: 1.25rem; }
.b-field input::placeholder { color: var(--faint); }
.b-field button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--fg); color: var(--bg); transition: transform .3s var(--ease); }
.b-field button:hover { transform: scale(1.08); }
.b-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.b-chips button { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: none; font-size: .9rem; color: var(--muted); transition: color .18s, border-color .18s; }
.b-chips button:hover { color: var(--fg); border-color: var(--fg); }
.b-toast { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; padding: 14px 16px; border-left: 2px solid var(--fg); background: var(--sunken); font-size: 1rem; min-height: 54px; }
.b-toast.is-shown { animation: b-toast .5s var(--ease); }
@keyframes b-toast { from { opacity: 0; transform: translateY(8px); } }
.b-toast strong { font-weight: 600; }
.b-toast button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.b-vault { padding: clamp(22px, 3.4vw, 44px); border-left: 1px solid var(--line); background: var(--sunken); min-height: 400px; }
.b-vault-title { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.tree, .tree ul { display: grid; gap: 2px; }
.tree ul { padding-left: 22px; margin-left: 9px; border-left: 1px solid var(--line-strong); }
.tree li > span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 9px; border-radius: 6px; font-size: .98rem; transition: background .4s; }
.tree li > span .icon { color: var(--muted); }
.tree li.is-hit > span { background: rgba(25, 25, 25, .1); font-weight: 600; }
.tree li.is-new { animation: b-note .5s var(--ease); }
.tree .tree-note { margin: 4px 0 6px; padding: 6px 12px; border-left: 2px solid var(--fg); background: var(--raised); font-family: var(--serif); font-style: italic; font-size: 1.02rem; overflow-wrap: anywhere; animation: b-note .6s var(--ease); }
@keyframes b-note { from { opacity: 0; transform: translateX(-14px); } }
.b-note { grid-column: 1 / -1; padding: 14px clamp(22px, 3.4vw, 44px); border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

/* Features */
.b-features { padding: 0 0 clamp(80px, 10vw, 150px); background: var(--bg); }
.b-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--fg); }
.b-grid article { display: grid; align-content: start; gap: 12px; padding: 28px 28px 36px 0; border-bottom: 1px solid var(--line); }
.b-grid article:nth-child(3n + 2), .b-grid article:nth-child(3n) { padding-left: 28px; border-left: 1px solid var(--line); }
.b-grid span { font-size: .92rem; font-weight: 500; color: var(--faint); }
.b-grid h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.b-grid p { color: var(--muted); }

/* Get Burble */
.b-get { padding: clamp(80px, 10vw, 150px) 0; background: var(--sunken); border-top: 1px solid var(--line); text-align: center; }
.b-get .b-wrap { display: grid; justify-items: center; gap: 26px; }
.b-platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--muted); }
.b-platforms li + li::before { content: '·'; margin-right: 14px; color: var(--faint); }
.b-get-grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; text-align: left; }
.b-get-grid > div { display: grid; align-content: start; justify-items: start; gap: 16px; padding: clamp(24px, 3.4vw, 44px); border: 1px solid var(--line-strong); border-radius: 10px; background: var(--raised); }
.b-get-grid h3 { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: -.02em; }
.b-get-grid p { color: var(--muted); }
.b-principles { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; text-align: left; }
.b-principles li { padding-top: 16px; border-top: 1px solid var(--fg); font-family: var(--serif); font-size: 1.18rem; line-height: 1.35; }

.foot { --foot-bg: var(--bg); }

@media (max-width: 900px) {
  .b-nav nav { display: none; }
  .b-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 0; padding-top: 84px; }
  .b-stacks { grid-column: 1; grid-row: 1; padding: 62px 6% 46px; }
  .b-steps { grid-column: 1; grid-row: 2; min-height: 0; height: 100%; }
  .b-step { align-content: start; padding-top: 34px; gap: 14px; }
  .b-search { min-width: 200px; padding: 9px 14px; }
  .b-dots { bottom: 20px; }
  .b-demo, .b-grid, .b-get-grid, .b-principles { grid-template-columns: 1fr; }
  .b-vault { border-left: 0; border-top: 1px solid var(--line); min-height: 0; }
  .b-grid article, .b-grid article:nth-child(3n + 2), .b-grid article:nth-child(3n) { padding-left: 0; border-left: 0; }
  .b-underline { width: 70vw; margin-top: -14px; }
}
@media (max-width: 560px) {
  .studio-chip span { display: none; }
  .studio-chip { padding: 6px; }
  .b-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .b-actions .stores .store { flex: 1 1 140px; }
}
