@font-face { font-family: 'Newsreader'; src: url(fonts/newsreader.woff2) format('woff2'); font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url(fonts/newsreader-italic.woff2) format('woff2'); font-weight: 300 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist'; src: url(fonts/geist.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

/* Living Provenance's website tokens, unchanged. Layout: film band with Ask, 4 figures, the brief, "Needs you" 3 across, 3 working columns, opportunities, SAM, and the agent team on the night band. */
:root {
  --bg: #FBFAF7; --surface: #FFFFFF; --sand: #F3EFE9; --ink: #17162B; --ink-2: #4B4960; --ink-3: #686679;
  --line: #E6E2DB; --accent: #4245E3; --accent-ink: #FFFFFF; --accent-soft: #E9E9FD;
  --glow: #FFE2C8; --glow-line: #EE8536; --night: #121127; --on-night: #F2F0F8; --on-night-2: #B9B6CC; --night-line: rgba(242,240,248,.14);
  --leaf: #A9AAF4; --bud: #EE8536;
  --bad: #B4232F; --bad-soft: #FBE7E8; --warn: #9A5B12; --warn-soft: #FCEEDD; --ok: #1F7A4D; --ok-soft: #E2F3EA;
  --card-shadow: 0 1px 0 rgba(23,22,43,.04), 0 2px 6px -2px rgba(23,22,43,.06), 0 30px 60px -36px rgba(23,22,43,.22);
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2,.7,.1,1);
  --gut: clamp(16px, 4vw, 56px);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0E0D19; --surface: #17162A; --sand: #1D1C33; --ink: #F2F0F8; --ink-2: #BDBACD; --ink-3: #9895AC;
  --line: #2B2A43; --accent: #9799FF; --accent-ink: #0E0D19; --accent-soft: #25244A;
  --glow: rgba(238,133,54,.30); --glow-line: #F4A464; --night: #07060F; --leaf: #7F81E8; --bud: #F4A464;
  --bad: #FF8A93; --bad-soft: #3A1D25; --warn: #F2C266; --warn-soft: #3A2E17; --ok: #7FD4A6; --ok-soft: #173326;
  --card-shadow: 0 1px 0 rgba(255,255,255,.04), 0 30px 60px -36px rgba(0,0,0,.7);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0E0D19; --surface: #17162A; --sand: #1D1C33; --ink: #F2F0F8; --ink-2: #BDBACD; --ink-3: #9895AC;
  --line: #2B2A43; --accent: #9799FF; --accent-ink: #0E0D19; --accent-soft: #25244A;
  --glow: rgba(238,133,54,.30); --glow-line: #F4A464; --night: #07060F; --leaf: #7F81E8; --bud: #F4A464;
  --bad: #FF8A93; --bad-soft: #3A1D25; --warn: #F2C266; --warn-soft: #3A2E17; --ok: #7FD4A6; --ok-soft: #173326;
  --card-shadow: 0 1px 0 rgba(255,255,255,.04), 0 30px 60px -36px rgba(0,0,0,.7);
  color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 300; letter-spacing: -0.022em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Buttons and pills, as on the website */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; font: 600 15px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-light { background: #FFFFFF; color: #17162B; }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--sand); color: var(--ink-2); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.today, .pill.wait { color: var(--bad); background: var(--bad-soft); }
.pill.week { color: var(--warn); background: var(--warn-soft); }
.pill.later, .pill.idle { color: var(--ink-2); background: var(--sand); }
.pill.ok { color: var(--ok); background: var(--ok-soft); }
.pill.type { color: var(--accent); background: var(--accent-soft); }
.sn { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; margin-left: 2px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 600 11px/1 var(--sans); text-decoration: none; vertical-align: 2px; font-variant-numeric: tabular-nums; }
.sn:hover { background: var(--accent); color: var(--accent-ink); }

/* Header */
.top { background: color-mix(in srgb, var(--bg) 90%, transparent); box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 20px; min-height: 76px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .name { font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -0.01em; white-space: nowrap; }
.brand .tag { margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--line); font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.mark .dk { fill: currentColor; } .mark .lt { fill: var(--leaf); } .mark .bd { fill: var(--bud); }
.nav { display: flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 500; flex-wrap: wrap; }
.nav a, .nav button.v { padding: 10px 13px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; font-weight: 500; }
.nav a:hover, .nav button.v:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.nav button.v[aria-pressed="true"] { background: color-mix(in srgb, currentColor 10%, transparent); }
.nav .sep { width: 1px; height: 22px; background: var(--line); margin-inline: 8px; }

.proof { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 10px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 14px; width: fit-content; max-width: 100%; }
.proof b { font-weight: 600; }

/* Film band */
.film { position: relative; margin-top: 20px; border-radius: 30px; overflow: hidden; color: #FFFFFF; background: #2a2018 url(media/hero-1280.webp) center 62% / cover no-repeat; box-shadow: var(--card-shadow); }
.film::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,10,22,.80) 0%, rgba(12,10,22,.55) 45%, rgba(12,10,22,.08) 80%), linear-gradient(0deg, rgba(12,10,22,.35), transparent 50%); }
.film-in { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 4vw, 52px); max-width: 780px; }
.kicker { font: 500 16px/1.3 var(--sans); color: rgba(255,255,255,.86); }
.kicker i { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; margin-right: 10px; }
.film h1 { font-size: clamp(2.4rem, 1.6rem + 2.8vw, 4.1rem); line-height: 1.02; color: #FFFFFF; }
.film p { max-width: 34em; font-size: clamp(16px, 0.95rem + .2vw, 18px); color: rgba(255,255,255,.9); }
.hl { background: rgba(238,133,54,.32); box-shadow: inset 0 -2px 0 #EE8536; border-radius: 4px; padding: 0 3px; }
.ask { display: flex; gap: 8px; margin-top: 8px; max-width: 640px; }
.ask input { flex: 1; min-width: 0; height: 52px; padding: 0 22px; border-radius: 999px; border: 0; background: rgba(255,255,255,.96); color: #17162B; font-size: 16px; }
.ask input::placeholder { color: #686679; }
.ask .btn { min-height: 52px; padding: 0 24px; font-size: 16px; }

.prov { margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.prov i { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-right: 10px; }

/* Figures */
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-block: 30px 44px; }
.fig { padding: 4px 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fig:first-child { border-left: 0; padding-left: 0; }
.fig .num { font: 300 clamp(3rem, 2rem + 2.6vw, 4.6rem)/0.95 var(--serif); letter-spacing: -0.04em; font-variant-numeric: lining-nums tabular-nums; }
.fig .label { font-size: 15px; color: var(--ink-2); }

/* Section headers */
.sh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sh h2 { font-size: clamp(2rem, 1.5rem + 1.4vw, 2.8rem); line-height: 1.05; }
.count { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.note { font-size: 14px; color: var(--ink-3); }
.lede { max-width: 46em; font-size: 17px; color: var(--ink-2); }

/* Needs you: cards 3 across */
.needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.need { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 22px; background: var(--surface); outline: 1px solid var(--line); box-shadow: var(--card-shadow); min-width: 0; }
.need-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.need h3 { font: 500 17px/1.35 var(--sans); letter-spacing: 0; }
.need p { font-size: 14.5px; color: var(--ink-2); }
.need .meta { font-size: 13px; color: var(--ink-3); }
.need-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sand); color: var(--accent); flex: none; }
.ic svg, .aic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.who { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.who i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 11px/1 var(--sans); font-style: normal; box-shadow: 0 0 0 2px var(--surface); }
.who i + i { margin-left: -10px; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; }

/* Working columns */
.cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-block: 44px; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.panel { background: var(--surface); border-radius: 26px; outline: 1px solid var(--line); box-shadow: var(--card-shadow); padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ph { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ph h2 { font-size: 30px; line-height: 1.1; }
.sub-h { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 4px; }

.bigstat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--sand); }
.bigstat .num { font: 300 54px/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; }
.bigstat .num small { font-size: 26px; color: var(--ink-3); }
.bigstat > span:last-child { font-size: 14.5px; color: var(--ink-2); }
.lanes { display: flex; flex-direction: column; gap: 10px; }
.lane-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink-2); margin-bottom: 5px; }
.lane-top b { font-weight: 500; color: var(--ink); }
.track { height: 10px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.track i { display: block; height: 100%; min-width: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--leaf), var(--accent)); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; color: var(--ink-2); }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.next { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; }
.next b { font-weight: 600; }
.next span { color: var(--ink-2); }

.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stage { display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; border-radius: 14px; background: var(--sand); min-width: 0; }
.stage.on { background: var(--accent-soft); }
.stage .n { font: 300 28px/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.stage .s { font-size: 12px; line-height: 1.25; color: var(--ink-2); }
.reqs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.req { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--sand); }
.req .ic { width: 36px; height: 36px; background: var(--surface); }
.req .t { display: flex; flex-direction: column; min-width: 0; }
.req .t b { font-weight: 500; font-size: 14.5px; }
.req .t span { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.ledger { display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.line:last-child { border-bottom: 0; }
.line .d { font-size: 13.5px; color: var(--ink-3); }
.line .w { font-size: 15px; min-width: 0; }
.line .w span { display: block; font-size: 13px; color: var(--ink-3); }
.line .a { font-size: 15px; text-align: right; white-space: nowrap; }
.declined { color: var(--bad) !important; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.total b { font: 300 32px/1 var(--serif); color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.note-glow { font-size: 14px; color: var(--ink-2); }
.note-glow span { background: var(--glow); box-shadow: inset 0 -2px 0 var(--glow-line); border-radius: 4px; padding: 0 3px; }

/* Opportunities */
#opportunities { margin-block: 12px 48px; }
.opps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 14px; }
.opp { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 16px; padding: 18px; border-radius: 22px; background: var(--surface); outline: 1px solid var(--line); box-shadow: var(--card-shadow); min-width: 0; }
.opp-when { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-right: 12px; border-right: 1px solid var(--line); }
.cd { font-size: 13px; color: var(--ink-2); line-height: 1.1; }
.cd b { display: block; font: 300 36px/1 var(--serif); color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; }
.opp.urgent .cd b { color: var(--glow-line); }
.cd-roll b { font-size: 22px; letter-spacing: -0.01em; }
.cd-date { font-size: 12.5px; color: var(--ink-3); }
.opp-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.opp-top { display: flex; gap: 6px; flex-wrap: wrap; }
.opp h3 { font: 500 16.5px/1.3 var(--sans); letter-spacing: 0; }
.opp h3 a { text-decoration: none; }
.opp h3 a:hover { text-decoration: underline; }
.opp p { font-size: 14px; color: var(--ink-2); }
.opp .opp-val { color: var(--ink); font-weight: 500; }
.opp .opp-note { font-size: 13px; color: var(--ink-3); }

/* Path to a Fortune 500 partner */
.path { padding: clamp(24px, 3.5vw, 44px); margin-bottom: 8px; border-radius: 30px; background: var(--sand); }
.path .lede { margin-bottom: 26px; }
.ladder { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; align-items: end; }
.rung { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.step { position: relative; border-radius: 14px 14px 6px 6px; background: var(--surface); outline: 1px dashed color-mix(in srgb, var(--ink-3) 45%, transparent); }
.rung.done .step { background: var(--leaf); outline: 0; }
.rung.here .step { background: var(--accent); outline: 0; }
.rung.next .step { outline: 2px solid var(--accent); background: var(--accent-soft); }
.bud { position: absolute; left: 50%; top: -12px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--bud); box-shadow: 0 0 0 5px color-mix(in srgb, var(--bud) 25%, transparent); }
.here-tag { position: absolute; left: 50%; top: -42px; transform: translateX(-50%); white-space: nowrap; font: 600 12px/1 var(--sans); color: var(--glow-line); }
.rn { font-size: 12px; font-weight: 600; color: var(--ink); }
.rl { font-size: 12.5px; line-height: 1.3; color: var(--ink-2); min-height: 4em; }
.rung.here .rn { color: var(--accent); }
.path-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.path-cols .ph h2 { font-size: 26px; }
.path-cols p { font-size: 15px; color: var(--ink-2); }
.miles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.miles li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.miles li:last-child { border-bottom: 0; }
.miles .mk { font-weight: 600; color: var(--ink-3); }
.miles .pill { white-space: normal; height: auto; min-height: 26px; padding: 4px 10px; max-width: 15rem; line-height: 1.2; }
.buyers { display: flex; flex-direction: column; gap: 14px; }
.buyers div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.buyers div:last-child { border-bottom: 0; padding-bottom: 0; }
.buyers b { font: 400 19px/1.2 var(--serif); }
.buyers span { color: var(--ink-2); }

/* Night band */
.night { margin-top: 48px; background: var(--night); color: var(--on-night); padding-block: 56px 48px; }
.night h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1.05; color: var(--on-night); }
.night .lede { margin: 10px 0 28px; color: var(--on-night-2); }
.night .sn { background: rgba(151,153,255,.22); color: #C9CAFF; }
.agents { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.agent { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 22px; background: rgba(242,240,248,.05); outline: 1px solid var(--night-line); min-width: 0; }
.agent-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.aic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(151,153,255,.16); color: #C9CAFF; }
.agent h3 { font-size: 24px; line-height: 1.1; color: var(--on-night); }
.agent p { font-size: 14px; color: var(--on-night-2); }
.agent .where { margin-top: auto; font-size: 12.5px; color: #9F9CB8; }
.pill.aok { color: #7FD4A6; background: rgba(127,212,166,.14); white-space: normal; height: auto; min-height: 26px; padding: 4px 10px; }
.pill.aidle { color: var(--on-night-2); background: rgba(242,240,248,.08); white-space: normal; height: auto; min-height: 26px; padding: 4px 10px; }
.src-h { margin-top: 56px; margin-bottom: 18px; }
.sources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
.sources li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--night-line); font-size: 14px; color: var(--on-night); scroll-margin-top: 20px; }
.sources li:target { background: rgba(238,133,54,.16); border-radius: 8px; }
.sources a { color: var(--on-night); text-decoration: underline; text-decoration-color: rgba(242,240,248,.35); text-underline-offset: 3px; }
.sources em { display: block; font-style: normal; font-size: 12.5px; color: #9F9CB8; }
.sk { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: rgba(151,153,255,.22); color: #C9CAFF; font: 600 11.5px/1 var(--sans); }
.foot { padding-block: 22px 32px; background: var(--night); color: var(--on-night-2); font-size: 13px; border-top: 1px solid var(--night-line); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.toast.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .toast, .btn { transition: none; } .btn:hover { transform: none; } }

@media (max-width: 1240px) {
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols .stack { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .opps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agents { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 52px; }
  .path-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .fig:nth-child(3) { border-left: 0; padding-left: 0; }
  .cols, .cols .stack { display: grid; grid-template-columns: minmax(0, 1fr); }
  .opps { grid-template-columns: minmax(0, 1fr); }
  .agents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sources { grid-template-columns: minmax(0, 1fr); }
  .brand .tag { display: none; }
  .nav a, .nav .sep { display: none; }
}
@media (max-width: 560px) {
  .needs, .agents { grid-template-columns: minmax(0, 1fr); }
  .ask { flex-direction: column; }
  .ask input { flex: none; }
  .fig { padding: 0 14px; }
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opp { grid-template-columns: minmax(0, 1fr); }
  .opp-when { flex-direction: row; align-items: baseline; gap: 10px; border-right: 0; padding-right: 0; }
  .cd b { display: inline; font-size: 28px; margin-right: 4px; }
  .next, .buyers div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .panel { padding: 18px; border-radius: 22px; }
}

/* ---- live command center additions ---- */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.gate-card { width: min(460px, 100%); display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 28px; background: var(--surface); outline: 1px solid var(--line); box-shadow: var(--card-shadow); }
.gate-card h1 { font-size: 34px; line-height: 1.08; }
.gate-card p { color: var(--ink-2); font-size: 15.5px; }
.gate-card .brand { margin-bottom: 4px; }
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); }
.me { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.me i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 12px/1 var(--sans); font-style: normal; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.answer { display: flex; flex-direction: column; gap: 10px; max-width: 680px; margin-top: 6px; padding: 16px 20px; border-radius: 20px; background: rgba(255,255,255,.96); color: #17162B; font-size: 15px; line-height: 1.55; }
.answer .q { font-size: 13px; color: #686679; }
.answer a { color: #4245E3; }
.answer .md p + p { margin-top: 8px; }
.thinking { display: inline-flex; gap: 5px; align-items: center; color: #686679; font-size: 14px; }
.thinking::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #A9AAF4; border-top-color: #4245E3; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brief { margin-block: 0 40px; }
.brief .panel { gap: 10px; }
.md { font-size: 15px; color: var(--ink-2); }
.md h3, .md h4 { font: 600 15px/1.4 var(--sans); color: var(--ink); margin: 10px 0 2px; letter-spacing: 0; }
.md p { margin: 0; }
.md p + p, .md ul + p, .md p + ul, .md ol + p, .md p + ol { margin-top: 8px; }
.md ul, .md ol { margin: 4px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.md strong { color: var(--ink); font-weight: 600; }
.md a { color: var(--accent); text-underline-offset: 3px; }
.src { font-size: 13px; color: var(--ink-3); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.src:hover { color: var(--accent); text-decoration: underline; }
.src::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }
.empty { padding: 18px; border-radius: 18px; background: var(--sand); color: var(--ink-2); font-size: 14.5px; }
.empty b { color: var(--ink); font-weight: 600; }
.skel { position: relative; overflow: hidden; background: var(--sand); border-radius: 22px; min-height: 160px; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.need.done { opacity: .6; }
.need .draft-note { font-size: 13px; color: var(--accent); font-weight: 600; }
.menu { position: relative; }
.menu-list { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 5; min-width: 180px; padding: 6px; border-radius: 16px; background: var(--surface); outline: 1px solid var(--line); box-shadow: var(--card-shadow); display: flex; flex-direction: column; }
.menu-list button { text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-size: 14px; }
.menu-list button:hover { background: var(--sand); }
dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 26px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); }
dialog::backdrop { background: rgba(12,10,22,.55); }
.dlg { display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.dlg h2 { font-size: 28px; }
.dlg label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dlg input, .dlg textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); font: 15px/1.5 var(--sans); color: var(--ink); }
.dlg textarea { min-height: 260px; resize: vertical; }
.dlg .row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.dlg .warn { padding: 10px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.conns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.conn { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 20px; background: rgba(242,240,248,.05); outline: 1px solid var(--night-line); }
.conn b { font: 400 20px/1.2 var(--serif); color: var(--on-night); }
.conn span { font-size: 13.5px; color: var(--on-night-2); }
.conn input { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--night-line); background: rgba(242,240,248,.06); color: var(--on-night); }
.agent .cost { font-size: 13px; color: var(--on-night-2); font-variant-numeric: tabular-nums; }
.agent .btn-run { align-self: flex-start; }
.btn-night { background: rgba(242,240,248,.1); color: var(--on-night); }
.btn-night:hover { background: rgba(242,240,248,.16); }
.activity { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; }
.activity li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--night-line); font-size: 14px; color: var(--on-night-2); }
.activity li b { color: var(--on-night); font-weight: 500; }
.sam-body { max-height: 520px; overflow: auto; }
.status-line { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: rgba(255,255,255,.82); }
@media (max-width: 980px) { .conns { grid-template-columns: minmax(0, 1fr); } .activity li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
@media (prefers-reduced-motion: reduce) { .thinking::after, .skel::after { animation: none; } }
