@font-face {
	font-family: 'Bricolage Grotesque';
	font-style: normal;
	font-weight: 500 800;
	font-display: swap;
	src: url('/fonts/bricolage-grotesque-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Bricolage Grotesque';
	font-style: normal;
	font-weight: 500 800;
	font-display: swap;
	src: url('/fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Instrument Sans';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('/fonts/instrument-sans-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Instrument Sans';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('/fonts/instrument-sans-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--ink: #171a2f;
	--ink-soft: #3e4566;
	--ink-faint: #596079;
	--snow: #f4f7fb;
	--card: #ffffff;
	--line: #dde2ec;
	--sunrise: #ff5b1f;
	--sunrise-deep: #c63d0b;
	--sun: #ffc83d;
	--agent: #3047d6;
	--agent-tint: #e8ecff;
	--sky: #1f4fe0;
	--meadow: #1f8a5b;
	--berry: #c72e5f;
	--slot: #b9c1d6;
	--focus: #1f5fa8;
	--display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
	--body: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
	--radius: 18px;
	--gutter: clamp(16px, 4vw, 40px);
	color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--snow);
	color: var(--ink);
	font: 400 17px/1.55 var(--body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
a { color: var(--sky); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Bar */
.bar {
	max-width: 1240px; margin: 0 auto; padding: 18px var(--gutter);
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 24px/1 var(--display); letter-spacing: -0.03em; }
.brand-mark { flex: none; }
.bar nav { display: flex; align-items: center; gap: 22px; }
.bar nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.bar nav a:hover { color: var(--ink); }
.bar nav .btn { color: var(--ink); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	height: 52px; padding: 0 24px; border-radius: 14px; border: 0;
	background: var(--sunrise); color: var(--ink);
	font: 700 17px/1 var(--body); text-decoration: none; cursor: pointer;
	box-shadow: 0 3px 0 var(--sunrise-deep);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--sunrise-deep); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--sunrise-deep); }
.btn-small { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 11px; }
.btn-quiet { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.btn-quiet:hover { box-shadow: inset 0 0 0 2px var(--ink); background: #fff; }
.btn-quiet:active { box-shadow: inset 0 0 0 2px var(--ink); }

/* Hero */
.hero { max-width: 1240px; margin: 0 auto; padding: clamp(24px, 6vw, 72px) var(--gutter) 56px; }
.hero-copy { max-width: 900px; }
.eyebrow { font-weight: 700; color: var(--ink-faint); font-size: 15px; letter-spacing: 0.01em; }
h1 { margin-top: 12px; font-size: clamp(60px, 11.5vw, 148px); font-weight: 800; line-height: 0.9; letter-spacing: -0.045em; }
.together { color: var(--sunrise); }
.lede { margin-top: 24px; max-width: 640px; font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); }
.cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

.wall-card {
	margin: 52px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: 24px;
	padding: 20px clamp(16px, 3vw, 28px) 18px;
	box-shadow: 0 1px 0 rgba(23, 26, 47, 0.04), 0 24px 60px -32px rgba(23, 26, 47, 0.25);
}
.wall-head, .wall-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; }
.wall-project { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 16px; border-radius: 3px; background: var(--sunrise); display: inline-block; }
.wall-count { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--ink-soft); }
.wall-count b { color: var(--ink); font-weight: 800; }
.wall { display: block; width: 100%; height: auto; margin: 16px 0 14px; overflow: visible; }
.wall .b { fill: var(--sunrise); }
.wall .b.agent { fill: var(--agent); }
.wall .b.latest { fill: var(--sun); transform-box: fill-box; transform-origin: center; transform: translateY(-8px) rotate(-6deg); }
.wall .slot { fill: none; stroke: var(--slot); stroke-width: 2; stroke-dasharray: 5 5; }
.ticker { color: var(--ink-soft); font-size: 15px; min-height: 1.55em; }
.ticker b { color: var(--ink); }
.legend { color: var(--ink-faint); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.key { width: 18px; height: 9px; border-radius: 3px; display: inline-block; }
.key-person { background: var(--sunrise); }
.key-agent { background: var(--agent); margin-left: 10px; }

/* Laying animation: only when JS runs and motion is fine. */
@media (prefers-reduced-motion: no-preference) {
	.js .wall .b { opacity: 0; transform-box: fill-box; transform-origin: center; transform: translateY(-26px); }
	.js .wall .b.on { opacity: 1; transform: none; transition: opacity 0.18s ease-out, transform 0.32s cubic-bezier(0.3, 1.5, 0.6, 1); }
	.js .wall .b.latest.on { transform: translateY(-8px) rotate(-6deg); }
	.js .wall .b.latest.settle { animation: settle 2.4s ease-in-out 0.4s infinite alternate; }
}
@keyframes settle {
	from { transform: translateY(-8px) rotate(-6deg); }
	to { transform: translateY(-5px) rotate(-3deg); }
}

/* Sections */
section { scroll-margin-top: 16px; }
.section-head { max-width: 760px; }
.section-head h2, .trust h2, .early h2 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; line-height: 1; }
.section-head p:not(.soon) { margin-top: 16px; font-size: 19px; color: var(--ink-soft); }

.tools { max-width: 1240px; margin: 0 auto; padding: 72px var(--gutter); }
/* Running bond: joints never line up from one course to the next. */
.bond { margin-top: 40px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.tile { grid-column: span 4; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.tile:nth-child(1) { grid-column: span 7; }
.tile:nth-child(2) { grid-column: span 5; }
.tile:nth-child(6) { grid-column: span 12; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.tile:nth-child(6) h3 { flex: none; }
.tile:nth-child(6) p { flex: 1 1 340px; }
.tile h3 { font-size: 26px; font-weight: 800; }
.tile p { color: var(--ink-soft); }

.frag { margin: 10px 0 0; padding: 0; list-style: none; }
.frag-todos li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #eef1f7; font-weight: 600; }
.frag-todos li.done { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--slot); }
.check { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #948b7d; flex: none; }
.done .check { background: var(--meadow); border-color: var(--meadow); }
.who { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-faint); text-decoration: none; }
.chip { margin-left: auto; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: #eaeff8; color: var(--ink-soft); }
.chip-late { background: #fde7ee; color: var(--berry); }

.av { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.av-agent { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); }
.av-person { width: 22px; height: 22px; border-radius: 99px; background: var(--sky); color: #fff; font: 700 9px/1 var(--body); }
.av-big { width: 36px; height: 36px; }
.av-big.av-agent { border-radius: 10px; }
.av-big.av-person { font-size: 13px; }

.frag-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; padding-top: 12px; }
.col { background: #eef1f7; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 120px; }
.col span { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.col i { display: block; height: 24px; border-radius: 7px; background: #fff; border: 1px solid var(--line); }
.col i.short { width: 70%; }
.col i.moving { background: #fff; border: 2px solid var(--ink); transform: rotate(-4deg); box-shadow: 0 10px 18px -8px rgba(23, 26, 47, 0.45); }
.col-done { background: #e3f3ea; }

.frag-chat { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.line { background: #eef1f7; border-radius: 14px 14px 14px 4px; padding: 8px 12px; align-self: flex-start; }
.line b { display: block; font-size: 13px; }
.line.own { background: #ffe5d8; border-radius: 14px 14px 4px 14px; align-self: flex-end; }
.typing { font-size: 13px; color: var(--ink-faint); }

.frag-cal { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 12px; }
.date { width: 58px; height: 62px; border-radius: 12px; background: var(--ink); color: #fff; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.date b { font: 800 26px/1 var(--display); }
.ev { font-weight: 700; display: flex; flex-direction: column; border-left: 4px solid var(--sunrise); padding-left: 10px; }
.ev small { font-weight: 500; color: var(--ink-faint); }

.frag-files { margin-top: auto; padding-top: 12px; display: flex; gap: 8px; }
.f { width: 56px; height: 68px; border-radius: 10px; display: inline-flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; font-size: 12px; font-weight: 800; color: #fff; }
.f-pdf { background: var(--berry); }
.f-img { background: var(--meadow); }
.f-vid { background: var(--agent); }

.frag-goal { margin: 0; flex: 1 1 100%; display: flex; align-items: center; gap: 14px; font-weight: 700; }
.meter { flex: 1; height: 12px; border-radius: 99px; background: #eef1f7; overflow: hidden; }
.meter i { display: block; width: 64%; height: 100%; background: var(--sunrise); border-radius: 99px; }
.pace { font-size: 13px; color: var(--meadow); padding: 2px 10px; border-radius: 99px; background: #e3f3ea; }

/* Agents */
.agents {
	background: var(--ink); color: #f1f2fa;
	padding: 88px var(--gutter);
}
.agents > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.agents .section-head { margin-left: max(0px, calc((100% - 1240px) / 2)); }
.agents .section-head p:not(.soon) { color: #c3c8e0; }
.soon { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); background: var(--sun); padding: 4px 10px; border-radius: 6px; margin-bottom: 18px; }
.steps { list-style: none; padding: 0; margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid #3b4166; padding-top: 16px; }
.steps li::before { content: counter(step); font: 800 15px/1 var(--display); color: var(--sun); display: block; margin-bottom: 10px; }
.steps h3 { font-size: 22px; font-weight: 800; }
.steps p { margin-top: 6px; color: #c3c8e0; }
.thread { margin-top: 48px; max-width: 720px; background: #fff; color: var(--ink); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.msg { display: flex; gap: 12px; }
.meta { font-size: 14px; color: var(--ink-faint); }
.meta b { color: var(--ink); }
.choices { margin-top: 10px; display: flex; gap: 8px; }
.choice { height: 36px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--ink); display: inline-flex; align-items: center; font-weight: 700; font-size: 15px; }
.choice-main { background: var(--sunrise); border-color: var(--sunrise); }
.rules { margin-top: 28px; max-width: 720px; color: #c3c8e0; }

/* Trust */
.trust { max-width: 1240px; margin: 0 auto; padding: 88px var(--gutter) 48px; }
.trust ul { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.trust li { padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.trust li b { color: var(--ink); display: block; font-size: 19px; }

/* Early access */
.early { max-width: 1240px; margin: 40px auto 0; padding: 0 var(--gutter) 96px; }
.early > p { margin-top: 14px; font-size: 19px; color: var(--ink-soft); max-width: 620px; }
.signup { margin-top: 26px; max-width: 620px; }
.signup label { font-weight: 700; display: block; margin-bottom: 8px; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input { flex: 1 1 260px; height: 52px; border-radius: 14px; border: 2px solid #948b7d; padding: 0 16px; font: 500 17px var(--body); background: #fff; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { margin-top: 10px; font-size: 14px; color: var(--ink-faint); }
.status { margin-top: 10px; font-weight: 700; min-height: 1.5em; }
.status.ok { color: var(--meadow); }
.status.err { color: var(--berry); }

/* Footer */
.foot { max-width: 1240px; margin: 0 auto; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; color: var(--ink-faint); font-size: 14px; }
.brand-foot { font-size: 19px; }
.foot nav { margin-left: auto; display: flex; gap: 20px; }
.foot nav a { color: var(--ink-soft); }

/* Plain pages (privacy, thanks) */
.page { max-width: 720px; margin: 0 auto; padding: 32px var(--gutter) 80px; }
.page h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1; }
.page h2 { font-size: 24px; margin-top: 32px; }
.page p, .page li { color: var(--ink-soft); margin-top: 12px; }

@media (max-width: 900px) {
	.bar nav a:not(.btn):not(.signin) { display: none; }
	.bond { grid-template-columns: repeat(2, 1fr); }
	.tile, .tile:nth-child(n) { grid-column: span 2; }
	.tile:nth-child(3), .tile:nth-child(4) { grid-column: span 1; }
	.steps { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
	.trust ul { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.bar nav { gap: 14px; }
	.bar nav .signin { display: none; }
	.tile:nth-child(3), .tile:nth-child(4) { grid-column: span 2; }
	.steps { grid-template-columns: 1fr; }
	.wall-count { font-size: 17px; }
	.foot nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn { transition: none; }
}

/* Iteration 2: hero in two columns, the wall above the fold. */
@media (min-width: 1000px) {
	.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-top: 48px; }
	.hero h1 { font-size: clamp(72px, 7.6vw, 116px); }
	.wall-card { margin-top: 0; }
}
.wrap { max-width: 1240px; margin: 0 auto; }
.agents > * { max-width: none; }
.agents .section-head { margin-left: 0; }
.agents-grid { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.agents-grid .steps { margin-top: 0; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.agents-grid .thread { margin-top: 0; max-width: none; }
@media (max-width: 900px) {
	.agents-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.agents-grid .steps { grid-template-columns: 1fr; }
}

.early { margin-top: 24px; }
.early-card {
	background: var(--card); border: 1px solid var(--line); border-radius: 28px;
	padding: clamp(24px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 0;
	box-shadow: 0 24px 60px -36px rgba(23, 26, 47, 0.3);
}
.early-card > p { margin-top: 14px; font-size: 19px; color: var(--ink-soft); max-width: 620px; }
.first-brick { width: 150px; height: auto; margin-bottom: 18px; overflow: visible; }
.fb-base { fill: var(--sunrise); }
.fb-slot { fill: none; stroke: var(--slot); stroke-width: 2.5; stroke-dasharray: 6 6; }
.fb-brick { fill: var(--sun); opacity: 0; transform-box: fill-box; transform-origin: center; transform: translateY(-40px) rotate(-12deg); }
.early-card.joined .fb-brick { opacity: 1; transform: none; transition: opacity 0.2s, transform 0.5s cubic-bezier(0.3, 1.6, 0.6, 1); }
@media (prefers-reduced-motion: reduce) {
	.early-card.joined .fb-brick { transition: none; }
}
.agents { padding-left: 0; padding-right: 0; }
.agents .wrap { padding: 0 var(--gutter); }
.early-card.joined .fb-slot { opacity: 0; }
