Reports
ConfirmedMonthly performance and campaign reports with charts as a first class component.
Primary render. Select it to open full size.
Every render from the champion round
How to use it, from the piece README
One JSON file in, a print-ready US Letter PDF out. Cover, the month in numbers, channel performance, paid ads, email and SMS, social, listing media delivered, and next month's plan. Built on the docs kit (doc.css) and the chart kit (charts.js). Nothing to install beyond Python 3 and Chrome.
Make this month's report
- Copy
report.jsonand name it for the client and month, for examplerosehill-2026-10.json. - Copy the photos you need from
brief/real-photos/(or the client's delivered shoot) intophotos/. Never link to a photo somewhere else. - Replace every number with the month's exports: PaceCRM for leads, tours, and sends, Google Ads and Meta Ads Manager for spend and clicks, Meta Business Suite for social, the delivery log for media.
- From the repo root run
sh build/report/v/r01/render.sh. For a different file, runpython3 build/report/v/r01/fill.py your.json build/report/v/r01/report.htmlfirst, then the render script. - Open
renders/report.pdf. Each section should hold one page, eight pages in all. If a section spills onto a page of its own, cut words, not type size. - Leave
"status": "draft"until Jacob has cleared the editor note, then set it to"final". The note and the DRAFT flag disappear on their own.
Or open report.html in Chrome and press Cmd+P, Save as PDF, Margins Default, Background graphics on.
What goes where in the JSON
| Key | What it is |
|---|---|
doc.name | Footer text, bottom left of every page. |
cover | Eyebrow, title (60 characters at most), lede (260 at most), three meta items, one photo. |
masthead | Two lines, top right of page 2. |
sections | One per page. Each has eyebrow, title, optional lede, and blocks. |
Block types: stats (up to four stat tiles), chart (bar, line, stacked, donut, compare, steps, same JSON as the chart kit), table, text, subhead, callout, copy, note, media, and row (columns that add up to 12). Mark money, count, date, and time columns "num": true so they line up. In any text, **words** sets bold and <Contact Name> shows as a merge tag.
fill.py stops with a plain-English message if a cover title runs long, a stat row has more than four numbers, a chart has no source line, a table row has the wrong number of cells, or a photo is missing.
Photos
The photo never carries type, a rule, or a scrim. The layout reads the photo and picks for you:
- Landscape cover photo: a full-width strip under the navy, with the Red Bright seam on top.
- Portrait cover photo: a 2:3 panel at the bottom right, bleeding off two edges, with the lede and dates beside it.
- Shot of the month: a landscape photo takes six columns at 3:2, a portrait photo takes four columns at 4:5.
To check a photo before you commit to it, run sh build/report/v/r01/phototest.sh. It drops a tight interior, a wide aerial, a portrait, and a lot with a red boundary line into both slots and saves renders/photo-*.png. Copy one of those lines to test your own file with fill.py ... --photo photos/yours.jpg.
Lot photos from mc_fullres_10 to 15 have a red boundary line burned in. That is fine in the report, because no red type or red bar sits on the photo. The only red that touches it is the cover seam along the top edge.
Rules
- Every chart title states the finding, and every chart ends with a source line.
- One red highlight per chart. One dark callout per page at most.
- Listings are not always houses. Use acreage, frontage, square feet, or delivery facts, never beds and baths as the fact row.
- Emails quoted in a copy block open
Hello <Contact Name>,. - No hex values anywhere. Every colour comes from
tokens.cssthrough the kits.
For Jacob to confirm
Every figure in report.json is example data shaped for a master-planned community account. That includes leads, spend, cost per lead, tours, send results, social reach, turnaround times, the $900 festival budget, the $600 budget shift, and the 2,500 postcard run. The editor note on page 8 says so.
Files to download and code to copy
- Whole piece, source files15 files, zip, 6.4 MB. Paths inside follow the repo layout, so put tokens.css beside them as the README says.Download
- report.pdfPDF, 2.5 MBDownload
Copy-paste code
report.json976 lines, 27.6 KB
{
"doc": {
"name": "Marathon Creative, Rosehill Reserve monthly report, September 2026",
"title": "Rosehill Reserve, September 2026 performance report",
"status": "draft"
},
"cover": {
"eyebrow": "Monthly performance report, September 2026",
"title": "186 buyer leads at $45 each from paid ads.",
"lede": "Leads rose 14% on August and paid cost per lead fell 20%. 52 of those buyers booked a welcome center tour. Here is what drove it, what we delivered, and what we change in October.",
"meta": [
{
"label": "Prepared for",
"value": "Rosehill Reserve marketing team"
},
{
"label": "Reporting period",
"value": "September 1 to 30, 2026"
},
{
"label": "Issued",
"value": "October 6, 2026"
}
],
"photo": {
"src": "photos/mc_rosehill_17.jpg",
"alt": "Rosehill Reserve entry monument with the retail center behind it, shot by Marathon Creative",
"focus": "50% 62%"
}
},
"masthead": [
"Rosehill Reserve, September 2026",
"Prepared by Taylor Treybig, approved by Jacob Dow"
],
"sections": [
{
"eyebrow": "01, The month in numbers",
"title": "More buyers, cheaper leads, and faster replies.",
"lede": "Four numbers decide whether the month worked. All four moved the right way.",
"blocks": [
{
"type": "stats",
"items": [
{
"value": 186,
"label": "Buyer leads in September",
"delta": {
"text": "Up 14% on August"
},
"spark": [
118,
131,
142,
150,
163,
186
]
},
{
"value": 45,
"format": {
"type": "money"
},
"label": "Paid ads cost per lead",
"delta": {
"text": "Down from $56 in August"
},
"highlight": true
},
{
"value": 52,
"label": "Welcome center tours booked",
"delta": {
"text": "28% of leads, was 24%"
}
},
{
"value": "46",
"unit": "sec",
"label": "Median first reply, PaceCRM text",
"delta": {
"text": "Was 3 min 10 sec"
}
}
]
},
{
"type": "row",
"cols": [
{
"span": 7,
"blocks": [
{
"type": "subhead",
"text": "What happened"
},
{
"type": "text",
"paragraphs": [
"We moved Google budget off broad new home searches and onto the community name and the six builder names. Those terms cost $39 a lead against $59 for the broad terms, and they book tours at nearly twice the rate.",
"The sunrise drone Reel shot on September 3 reached 11,420 accounts, the best post the community has had. We turned the same footage into the Meta amenity ad, which became the cheapest paid campaign at $38 a lead.",
"PaceCRM now texts every new lead within a minute, day or night. **Median first reply fell from three minutes to 46 seconds**, and the welcome center team calls the same day for 91% of leads."
]
}
]
},
{
"span": 5,
"blocks": [
{
"type": "callout",
"eyebrow": "Key takeaways",
"title": "What we change in October",
"items": [
"Shift $600 more to community name and builder terms",
"Run the Fall Festival campaign, October 25",
"Shoot the second model home row at twilight",
"Add calendar booking to the website tour form",
"Mail 2,500 homesite postcards"
]
}
]
}
]
}
]
},
{
"newpage": true,
"eyebrow": "02, Channel performance",
"title": "Paid ads brought in 135 of 186 leads.",
"lede": "Google Search found the most buyers. Organic search and PaceCRM nurture filled in another 42 at no media cost.",
"blocks": [
{
"type": "chart",
"kind": "stacked",
"eyebrow": "Six-month trend",
"title": "Monthly leads are up 58% since April",
"source": "Leads per month by channel group. Paid ads is Google Search plus Meta. Source: PaceCRM.",
"data": {
"label": "Leads per month by channel, April to September 2026",
"focus": "last",
"categories": [
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep"
],
"series": [
{
"name": "Paid ads",
"values": [
78,
87,
94,
99,
105,
135
]
},
{
"name": "Organic",
"values": [
20,
22,
24,
25,
28,
27
]
},
{
"name": "Email and SMS",
"values": [
12,
13,
15,
16,
19,
15
]
},
{
"name": "Referral",
"values": [
8,
9,
9,
10,
11,
9
]
}
]
}
},
{
"type": "table",
"columns": [
{
"label": "Channel"
},
{
"label": "Spend",
"num": true
},
{
"label": "Leads",
"num": true
},
{
"label": "Cost per lead",
"num": true
},
{
"label": "Tours booked",
"num": true
},
{
"label": "Lead to tour",
"num": true
}
],
"rows": [
[
"Google Search Ads",
"$3,420",
"71",
"$48",
"22",
"31%"
],
[
"Meta Ads",
"$2,610",
"64",
"$41",
"13",
"20%"
],
[
"Organic search and Google Business Profile",
"None",
"27",
"None",
"9",
"33%"
],
[
"Email and SMS nurture",
"None",
"15",
"None",
"6",
"40%"
],
[
"Referral and walk-in",
"None",
"9",
"None",
"2",
"22%"
]
],
"total": [
"All channels",
"$6,030",
"186",
"$45 paid",
"52",
"28%"
],
"caption": "Spend is media spend only, before Marathon management fees. Cost per lead is shown for paid channels. Lead to tour is tours booked divided by leads in the same month."
}
]
},
{
"newpage": true,
"eyebrow": "03, Paid ads",
"title": "Google cost per lead fell from $59 to $48.",
"blocks": [
{
"type": "chart",
"kind": "line",
"title": "Both platforms got cheaper in September",
"source": "Monthly ad spend divided by new leads, April to September 2026. Source: Google Ads, Meta Ads Manager, and PaceCRM.",
"data": {
"label": "Cost per lead by month",
"format": {
"type": "money"
},
"categories": [
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep"
],
"series": [
{
"name": "Google Search",
"values": [
66,
63,
61,
58,
59,
48
],
"highlight": true
},
{
"name": "Meta Ads",
"values": [
52,
50,
49,
47,
52,
41
]
}
],
"annotations": [
{
"series": 0,
"index": 5,
"text": "Exact-match terms live Sep 2"
}
]
}
},
{
"type": "table",
"columns": [
{
"label": "Campaign"
},
{
"label": "Platform"
},
{
"label": "Spend",
"num": true
},
{
"label": "Clicks",
"num": true
},
{
"label": "Leads",
"num": true
},
{
"label": "Cost per lead",
"num": true
},
{
"label": "Tours",
"num": true
}
],
"rows": [
[
"Community name and builder terms",
"Google Search",
"$1,480",
"612",
"38",
"$39",
"13"
],
[
"New homes under $400K",
"Google Search",
"$1,940",
"1,077",
"33",
"$59",
"9"
],
[
"Pool and trails amenity video",
"Meta",
"$1,350",
"1,904",
"36",
"$38",
"7"
],
[
"Move-in ready homes carousel",
"Meta",
"$1,260",
"1,388",
"28",
"$45",
"6"
]
],
"total": [
"All paid campaigns",
"",
"$6,030",
"4,981",
"135",
"$45",
"35"
],
"caption": "Leads are form fills and calls tracked in PaceCRM. Tours are booked visits to the welcome center or a model home.",
"widths": [
"2.55in",
"1.3in",
"",
"",
"",
"",
""
]
},
{
"type": "row",
"cols": [
{
"span": 6,
"blocks": [
{
"type": "subhead",
"text": "What worked"
},
{
"type": "text",
"paragraphs": [
"Buyers who search the community or a builder by name already know where they want to live. They cost $39 a lead and one in three booked a tour. We raised that campaign's daily cap twice in September and it never ran out of searches."
]
}
]
},
{
"span": 6,
"blocks": [
{
"type": "subhead",
"text": "What we cut"
},
{
"type": "text",
"paragraphs": [
"The broad under $400K campaign still finds new buyers, so it stays, but at $59 a lead it gets $600 less in October. We added 38 negative keywords, including apartments, rent, and lease."
]
}
]
}
]
}
]
},
{
"newpage": true,
"eyebrow": "04, Email and SMS",
"title": "PaceCRM answered every lead in under a minute.",
"blocks": [
{
"type": "chart",
"kind": "steps",
"eyebrow": "How a lead moves",
"title": "From form fill to tour in under a day",
"source": "Median times and counts for September 2026. Source: PaceCRM.",
"data": {
"steps": [
{
"title": "Form or call",
"text": "Google, Meta, the website, or a call",
"figure": "186 leads"
},
{
"title": "Text reply",
"text": "PaceCRM texts a tour link",
"figure": "46 sec median"
},
{
"title": "Call",
"text": "Welcome center calls the same day",
"figure": "91% same day"
},
{
"title": "Tour booked",
"text": "Welcome center or a model home",
"figure": "52 tours",
"highlight": true
},
{
"title": "Nurture",
"text": "Six-week email and text sequence",
"figure": "1,148 enrolled"
}
]
}
},
{
"type": "table",
"columns": [
{
"label": "Send"
},
{
"label": "Channel"
},
{
"label": "Date",
"num": true
},
{
"label": "Sent",
"num": true
},
{
"label": "Response",
"num": true
},
{
"label": "Tours",
"num": true
}
],
"rows": [
[
"Fall homesite release",
"Email",
"Sep 4",
"4,812",
"38% open, 4.1% click",
"3"
],
[
"Model home weekend invite",
"SMS",
"Sep 12",
"1,206",
"9.2% reply",
"2"
],
[
"September community newsletter",
"Email",
"Sep 18",
"4,790",
"34% open, 2.6% click",
"0"
],
[
"New lead nurture, six touches",
"Email and SMS",
"Ongoing",
"1,148",
"21% reply",
"1"
]
],
"total": [
"All sends",
"",
"",
"11,956",
"",
"6"
],
"widths": [
"2.45in",
"1.25in",
"",
"",
"1.5in",
""
]
},
{
"type": "row",
"cols": [
{
"span": 7,
"blocks": [
{
"type": "copy",
"eyebrow": "Best send, verbatim",
"meta": "PaceCRM email, September 4",
"paragraphs": [
"Subject: The fall homesites are released",
"Hello <Contact Name>,",
"Fourteen new homesites opened at Rosehill Reserve this week, five of them backing to the trail. Builders hold them for 14 days for buyers who tour first. Pick a time and we will have the welcome center ready."
]
}
]
},
{
"span": 5,
"blocks": [
{
"type": "note",
"kind": "compliance",
"label": "Compliance",
"paragraphs": [
"Texts go only to contacts who checked the consent box on the lead form. Every text carries Reply STOP to opt out, and PaceCRM holds sends between 9pm and 9am. Open rates above exclude Apple Mail Privacy Protection auto-opens."
]
}
]
}
]
}
]
},
{
"newpage": true,
"eyebrow": "05, Social",
"title": "Reels reached twice as many people as anything else.",
"lede": "18 posts and 22 stories on Instagram and Facebook. The drone footage did the heavy lifting.",
"blocks": [
{
"type": "stats",
"items": [
{
"value": "48.2K",
"label": "Accounts reached",
"delta": {
"text": "Up 22% on August"
}
},
{
"value": "4.8",
"unit": "%",
"label": "Engagement rate",
"delta": {
"text": "Was 3.9%"
},
"highlight": true
},
{
"value": 312,
"label": "New followers",
"delta": {
"text": "Instagram and Facebook combined"
}
}
]
},
{
"type": "chart",
"kind": "bar",
"title": "A Reel reached 6,840 accounts on average",
"source": "Average accounts reached per post by format, September 2026. Source: Meta Business Suite.",
"data": {
"label": "Average reach by post format",
"data": [
{
"label": "Reels, eight posts",
"value": 6840,
"highlight": true
},
{
"label": "Carousels, five posts",
"value": 3120
},
{
"label": "Single photos, five posts",
"value": 1940
},
{
"label": "Stories, 22 frames",
"value": 1210
}
]
}
},
{
"type": "table",
"columns": [
{
"label": "Top posts"
},
{
"label": "Format"
},
{
"label": "Date",
"num": true
},
{
"label": "Reach",
"num": true
},
{
"label": "Saves",
"num": true
},
{
"label": "Link clicks",
"num": true
}
],
"rows": [
[
"Sunrise over the lakes, drone",
"Reel",
"Sep 9",
"11,420",
"286",
"94"
],
[
"Pool and splash pad, last week of summer",
"Reel",
"Sep 2",
"8,960",
"142",
"51"
],
[
"Five homesites backing to the trail",
"Carousel",
"Sep 16",
"5,310",
"201",
"77"
],
[
"Meet the builders at the welcome center",
"Single photo",
"Sep 23",
"2,480",
"38",
"29"
]
],
"caption": "Link clicks go to the tour booking page. Saves are the best early sign a buyer is planning a visit."
}
]
},
{
"newpage": true,
"eyebrow": "06, Listing media delivered",
"title": "64 stills, three video cuts, and two Showcase tours.",
"blocks": [
{
"type": "media",
"feature": {
"src": "photos/mc_rosehill_18.jpg",
"alt": "Aerial looking down a street of new homes at Rosehill Reserve toward the tree line",
"focus": "50% 50%",
"eyebrow": "Shot of the month",
"title": "Community and amenity aerials",
"text": "32 drone stills from the September 3 sunrise flight, delivered by 9am the next business day. They now lead the website gallery, the Google Business Profile, and both Meta campaigns.",
"facts": [
{
"label": "Shot",
"value": "Sep 3, 7:05am"
},
{
"label": "Delivered",
"value": "Sep 4, 9am"
},
{
"label": "Turnaround",
"value": "19 hr"
},
{
"label": "Files",
"value": "32 stills"
}
]
},
"pair": [
{
"src": "photos/mc_rosehill_16.jpg",
"alt": "Aerial of Rosehill Reserve with two lakes, the amenity center, and the pool",
"focus": "50% 45%",
"caption": "**Amenity center and lakes.** Used in the Meta amenity ad, $38 a lead."
},
{
"src": "photos/mc_rosehill_17.jpg",
"alt": "Rosehill Reserve entry monument with retail behind it",
"focus": "50% 60%",
"caption": "**Entry monument and retail.** 14 stills for the website and print."
}
]
},
{
"type": "table",
"columns": [
{
"label": "Deliverable"
},
{
"label": "Shot",
"num": true
},
{
"label": "Delivered",
"num": true
},
{
"label": "Turnaround",
"num": true
},
{
"label": "Files",
"num": true
}
],
"rows": [
[
"Community and amenity aerials",
"Sep 3",
"Sep 4, 9am",
"19 hr",
"32 stills"
],
[
"Entry monument and retail frontage",
"Sep 3",
"Sep 4, 9am",
"19 hr",
"14 stills"
],
[
"Model home row, twilight",
"Sep 10",
"Sep 11, 9am",
"15 hr",
"18 stills"
],
[
"Zillow Showcase tours, two models",
"Sep 10",
"Sep 12",
"48 hr",
"Two tours"
],
[
"Pool and trails amenity video",
"Sep 3",
"Sep 8",
"Five days",
"60 sec, two cuts"
],
[
"Drone Reel, sunrise over the lakes",
"Sep 3",
"Sep 6",
"Three days",
"30 sec Reel"
]
],
"caption": "Marathon is Zillow Showcase certified, so both tours qualified for the Showcase gallery on the first visit.",
"widths": [
"2.6in",
"",
"",
"",
"1.25in"
]
}
]
},
{
"newpage": true,
"eyebrow": "07, October plan",
"title": "Five changes for October, each with an owner and a date.",
"lede": "October targets: 200 leads, under $45 a paid lead, 56 tours.",
"blocks": [
{
"type": "table",
"columns": [
{
"label": "Action"
},
{
"label": "Why"
},
{
"label": "Owner"
},
{
"label": "Done by",
"num": true
}
],
"widths": [
"2.3in",
"",
"1.6in",
"0.8in"
],
"rows": [
[
"Shift $600 to community name and builder terms",
"$39 a lead against $59 on broad terms",
"Marathon, paid ads",
"Oct 9"
],
[
"Fall Festival campaign, email, SMS, and Meta event ads",
"Event weekends booked 11 tours in May",
"Marathon and your events team",
"Oct 10"
],
[
"Twilight shoot, second model home row",
"Twilight stills lead the best carousels",
"Marathon, photo",
"Oct 14"
],
[
"Calendar booking on the website tour form",
"Cuts the call step for buyers who know their time",
"Marathon, PaceCRM",
"Oct 20"
],
[
"2,500 homesite postcards, printed and mailed to homes",
"Reaches renters within five miles who are not on social",
"Marathon, print",
"Oct 24"
]
]
},
{
"type": "row",
"cols": [
{
"span": 7,
"blocks": [
{
"type": "callout",
"eyebrow": "What we need from you",
"title": "Three decisions by October 15",
"items": [
"Approve the $900 festival ad budget by Oct 9",
"Confirm move-in ready homes by Oct 8",
"Sign off on the postcard proof by Oct 15"
]
}
]
},
{
"span": 5,
"blocks": [
{
"type": "subhead",
"text": "Questions about this report"
},
{
"type": "text",
"paragraphs": [
"Taylor Treybig runs this account day to day. Reply to the report email and you get an answer the same business day. The October report arrives November 5."
]
}
]
}
]
},
{
"type": "note",
"kind": "editor",
"label": "Editor note, internal only",
"paragraphs": [
"**Jacob to confirm before this goes out.** Every figure in this report is example data for a master-planned community account, including the $900 festival budget, the $600 shift, and the 2,500 postcard run. Replace it with the month's PaceCRM, Google Ads, Meta, and delivery log exports, then set status to final."
]
}
]
}
]
}report.css83 lines, 4.9 KB
/* Marathon Creative monthly report, report.css.
Loads after tokens.css, doc.css, and charts.css. Adds report layout only. Every colour and size is a
token. No hex, no rgb(), no alpha. Class names start rpt- so nothing in the kits is overridden by name. */
/* ---------------------------------------------------------------- cover -- */
/* Landscape photo: the docs kit cover as shipped, photo strip under the navy. */
.rpt-cover__title { max-width: 7in; }
.rpt-cover__foot { min-width: 0; }
/* Portrait photo: a 2:3 panel bleeds off the right and bottom edges. Type stays on navy, beside it. */
.rpt-cover--tall {
display: grid;
grid-template-columns: var(--mc-doc-margin-side) minmax(0, 1fr) var(--mc-space-09) 3.6in;
grid-template-rows: auto minmax(0, 1fr) auto auto 5.4in;
}
.rpt-cover--tall .doc-cover__top { display: contents; }
.rpt-cover--tall .doc-cover__logo { grid-column: 2; grid-row: 1; margin: var(--mc-doc-margin-top) 0 0; }
.rpt-cover--tall .doc-cover__eyebrow { grid-column: 2 / 5; grid-row: 3; padding-right: var(--mc-doc-margin-side); }
.rpt-cover--tall .rpt-cover__title { grid-column: 2 / 5; grid-row: 4; padding-right: var(--mc-doc-margin-side); margin-bottom: var(--mc-space-08); }
.rpt-cover--tall .rpt-cover__foot {
grid-column: 2; grid-row: 5; align-self: end;
padding-bottom: var(--mc-doc-margin-bottom);
}
.rpt-cover--tall .doc-cover__meta { flex-direction: column; gap: var(--mc-space-05); }
.rpt-cover--tall .doc-cover__photo { grid-column: 4; grid-row: 5; flex: none; height: auto; }
/* --------------------------------------------------------------- blocks -- */
.rpt-section .doc-opener { margin-bottom: var(--mc-space-07); }
.rpt-block { margin: 0 0 var(--mc-space-07); }
.rpt-block:last-child { margin-bottom: 0; }
.rpt-block > :last-child, .rpt-block .doc-grid > * > .rpt-block:last-child { margin-bottom: 0; }
.rpt-row .rpt-block { margin-bottom: var(--mc-space-05); }
.rpt-row .doc-callout, .rpt-row .doc-copy, .rpt-row .doc-note { margin-bottom: 0; }
/* Stat row built from chart kit stat tiles, sitting on the docs kit stat grid. */
.rpt-stats { margin-bottom: 0; }
.rpt-stats .mcc-stat-value--long { font-size: calc(var(--mcc-size-stat) * 0.8); }
/* Charts. The plot keeps a predictable height so a long label cannot push a page over. */
.rpt-chart { break-inside: avoid; }
.rpt-chart .mcc-eyebrow { margin-bottom: var(--mc-space-02); }
.rpt-chart .mcc-title { margin-bottom: var(--mc-space-04); }
/* Tables. Totals carry the 2pt navy rule from the docs kit tfoot. */
.rpt-table { margin-bottom: 0; }
.rpt-total td { font-weight: var(--mc-weight-bold); }
/* --------------------------------------------------------- listing media -- */
/* No type, rule, or colour ever sits on a photo. Captions sit under it, in Slate. */
.rpt-media { align-items: start; }
.rpt-media__photo { margin: 0; }
.rpt-media--wide .rpt-media__photo img { aspect-ratio: 3 / 2; }
.rpt-media--tall .rpt-media__photo img { aspect-ratio: 4 / 5; }
.rpt-media__side { min-width: 0; }
.rpt-media__title { margin-bottom: var(--mc-space-03); }
.rpt-media__text { font-size: var(--mc-print-type-small-size); line-height: var(--mc-type-small-leading); color: var(--mc-text-primary); }
.rpt-facts {
display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mc-space-04) var(--mc-doc-gutter);
margin: var(--mc-space-05) 0 0; padding: var(--mc-space-04) 0;
border-top: var(--doc-rule) solid var(--mc-border-strong); border-bottom: var(--doc-rule) solid var(--mc-border-strong);
}
.rpt-facts > div { min-width: 0; }
.rpt-facts dt { font-size: var(--mc-print-type-caption-size); font-weight: var(--mc-weight-semibold); color: var(--mc-text-tertiary); }
.rpt-facts dd { margin: 0; font-weight: var(--mc-weight-bold); color: var(--mc-text-heading); font-variant-numeric: var(--mc-numeric-tabular); }
.rpt-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mc-doc-gutter); margin-top: var(--mc-space-06); }
.rpt-pair__item { margin: 0; }
.rpt-pair__item img { aspect-ratio: 16 / 9; }
/* Wide and tall layouts share the same 2-up thumbnail row, so neither runs taller than the page allows. */
/* Masthead sits once, on page 2. Kept compact so section 01 holds its page. */
.rpt-section:first-of-type .doc-opener { margin-top: 0; }
/* A numeric cell that runs long wraps at its spaces instead of pushing the table past the page edge.
Chrome shrinks the whole PDF to fit anything wider than the page, which leaves a white band on the cover.
Money and counts have no spaces, so they never break. */
.rpt-table .num { white-space: normal; }
/* Charts inherit the token font, a variable font that Chrome embeds as Type 3, which press preflight
rejects. Inside the report they use the docs kit's static cuts, the same Montserrat files. */
.rpt-section .mcc, .rpt-section .mcc-svg text { font-family: var(--doc-font); }
fill.py305 lines, 14.2 KB
#!/usr/bin/env python3
# Marathon Creative monthly report. Fills report.html from report.json.
#
# python3 fill.py reads report.json, writes report.html
# python3 fill.py other.json out.html any data file, any output name
# python3 fill.py report.json out.html --photo photos/mc_retouched_05.jpg
# swaps the cover photo and the shot of the month for one photo, to test a photo in both slots
#
# Standard library only. No build tools, no install. The HTML it writes prints from Chrome with Cmd+P.
# Every colour and size lives in tokens.css, doc.css, charts.css, and report.css. This file writes
# class names only, never a colour.
import html, json, os, re, struct, sys
HERE = os.path.dirname(os.path.abspath(__file__))
TOKENS = "../../../tokens/v/best/"
DOCS = "../../../docs-kit/v/best/"
CHARTS = "../../../charts/v/best/"
CHART_KINDS = {"bar", "line", "stacked", "donut", "compare", "steps"}
# ------------------------------------------------------------------ helpers --
def esc(s):
return html.escape(str(s), quote=True)
def rich(s):
"""Plain text with two marks: **bold** and <Merge Tag>. Everything else is escaped."""
out = esc(s)
out = re.sub(r"\*\*(.+?)\*\*", r"<strong>\1</strong>", out)
out = re.sub(r"<([A-Z][A-Za-z0-9 ]{1,40})>", r'<span class="doc-tag"><\1></span>', out)
return out
def data_json(obj):
return json.dumps(obj, ensure_ascii=False).replace("</", "<\\/")
def jpeg_size(path):
"""Width and height of a JPEG, read from its frame header. Standard library only."""
with open(path, "rb") as f:
if f.read(2) != b"\xff\xd8":
raise ValueError(path + " is not a JPEG. Export the photo as JPEG.")
while True:
b = f.read(1)
while b and b != b"\xff":
b = f.read(1)
while b == b"\xff":
b = f.read(1)
if not b:
raise ValueError("Could not read the size of " + path)
marker = b[0]
if marker in (0xC0, 0xC1, 0xC2, 0xC3, 0xC5, 0xC6, 0xC7, 0xC9, 0xCA, 0xCB, 0xCD, 0xCE, 0xCF):
f.read(3)
h, w = struct.unpack(">HH", f.read(4))
return w, h
seg = struct.unpack(">H", f.read(2))[0]
f.seek(seg - 2, 1)
def is_portrait(src):
path = os.path.join(HERE, src)
if not os.path.exists(path):
raise SystemExit("Photo not found: " + src + ". Copy it into photos/ first, never hotlink.")
w, h = jpeg_size(path)
return h > w
def img(src, alt, focus=None, cls=""):
style = ' style="object-position: ' + esc(focus) + '"' if focus else ""
c = ' class="' + cls + '"' if cls else ""
return '<img' + c + ' src="' + esc(src) + '" alt="' + esc(alt) + '"' + style + ">"
# ------------------------------------------------------------------- blocks --
def b_stats(b):
n = len(b["items"])
if n > 4:
raise SystemExit("A stat row takes four numbers at most. This one has " + str(n) + ".")
cls = "doc-stats rpt-stats" + ({3: " doc-stats--3", 2: " doc-stats--2"}.get(n, ""))
cells = []
for it in b["items"]:
cells.append('<div class="mcc" data-mcc="stat"><script type="application/json">' + data_json(it) + "</script></div>")
return '<div class="' + cls + '">' + "".join(cells) + "</div>"
def b_chart(b):
kind = b["kind"]
if kind not in CHART_KINDS:
raise SystemExit("Unknown chart kind " + kind + ". Use bar, line, stacked, donut, compare, or steps.")
if not b.get("source"):
raise SystemExit("Every chart needs a source line. Add \"source\" to the " + kind + " chart.")
out = ['<figure class="mcc rpt-chart" data-mcc="' + kind + '">']
if b.get("eyebrow"):
out.append('<p class="mcc-eyebrow">' + esc(b["eyebrow"]) + "</p>")
if b.get("title"):
out.append('<h3 class="mcc-title">' + esc(b["title"]) + "</h3>")
out.append('<div class="mcc-plot"></div>')
out.append('<figcaption class="mcc-source">' + esc(b["source"]) + "</figcaption>")
out.append('<script type="application/json">' + data_json(b["data"]) + "</script>")
out.append("</figure>")
return "".join(out)
def b_table(b):
cols = b["columns"]
widths = b.get("widths")
out = ['<table class="doc-table rpt-table' + (" doc-table--fixed" if widths else "") + '">']
if widths:
out.append("<colgroup>" + "".join('<col style="width: ' + esc(w) + '">' if w else "<col>" for w in widths) + "</colgroup>")
out.append("<thead><tr>")
for c in cols:
out.append('<th' + (' class="num"' if c.get("num") else "") + ">" + esc(c["label"]) + "</th>")
out.append("</tr></thead><tbody>")
for row in b["rows"]:
if len(row) != len(cols):
raise SystemExit("Table row has " + str(len(row)) + " cells, the header has " + str(len(cols)) + ": " + str(row[0]))
out.append("<tr>")
for i, (c, v) in enumerate(zip(cols, row)):
cls = "num" if c.get("num") else ("item" if i == 0 else "")
if c.get("num") and len(str(v)) <= 10:
v = str(v).replace(" ", "\u00a0") # short values like Sep 12 or 19 hr never break; long ones may wrap
out.append("<td" + (' class="' + cls + '"' if cls else "") + ">" + rich(v) + "</td>")
out.append("</tr>")
out.append("</tbody>")
if b.get("total"):
out.append('<tfoot><tr class="rpt-total">')
for c, v in zip(cols, b["total"]):
out.append("<td" + (' class="num"' if c.get("num") else "") + ">" + esc(v) + "</td>")
out.append("</tr></tfoot>")
if b.get("caption"):
out.append("<caption>" + rich(b["caption"]) + "</caption>")
out.append("</table>")
return "".join(out)
def b_text(b):
return "".join("<p>" + rich(p) + "</p>" for p in b["paragraphs"])
def b_subhead(b):
return '<h3 class="doc-h3">' + esc(b["text"]) + "</h3>"
def b_callout(b):
out = ['<aside class="doc-callout rpt-callout">']
if b.get("eyebrow"):
out.append('<span class="doc-eyebrow">' + esc(b["eyebrow"]) + "</span>")
out.append('<p class="doc-callout__title">' + esc(b["title"]) + "</p>")
if b.get("items"):
out.append('<ul class="doc-list">' + "".join("<li>" + rich(i) + "</li>" for i in b["items"]) + "</ul>")
for p in b.get("paragraphs", []):
out.append("<p>" + rich(p) + "</p>")
out.append("</aside>")
return "".join(out)
def b_copy(b):
return ('<div class="doc-copy"><div class="doc-copy__head"><span class="doc-eyebrow">' + esc(b["eyebrow"]) +
'</span><span class="doc-copy__meta">' + esc(b.get("meta", "")) + '</span></div><div class="doc-copy__body">' +
"".join("<p>" + rich(p) + "</p>" for p in b["paragraphs"]) + "</div></div>")
def b_note(b):
kind = b.get("kind", "editor")
if kind not in ("editor", "compliance"):
raise SystemExit("A note is editor or compliance.")
return ('<aside class="doc-note doc-note--' + kind + '"><span class="doc-note__label">' + esc(b["label"]) + "</span>" +
"".join("<p>" + rich(p) + "</p>" for p in b["paragraphs"]) + "</aside>")
def b_media(b):
"""Shot of the month plus two supporting stills. The layout follows the photo, not the other way round:
a portrait original gets a tall five-column slot, a landscape original gets a seven-column slot.
Nobody has to pick. No type, rule, or colour ever sits on a photo."""
f = b["feature"]
tall = is_portrait(f["src"])
pcols, scols = (4, 8) if tall else (6, 6)
out = ['<div class="doc-grid rpt-media ' + ("rpt-media--tall" if tall else "rpt-media--wide") + '">']
out.append('<figure class="doc-figure rpt-media__photo doc-col-' + str(pcols) + '">' + img(f["src"], f["alt"], f.get("focus")) + "</figure>")
out.append('<div class="rpt-media__side doc-col-' + str(scols) + '">')
if f.get("eyebrow"):
out.append('<span class="doc-eyebrow">' + esc(f["eyebrow"]) + "</span>")
out.append('<h2 class="doc-h3 rpt-media__title">' + esc(f["title"]) + "</h2>")
if f.get("text"):
out.append('<p class="rpt-media__text">' + rich(f["text"]) + "</p>")
if f.get("facts"):
out.append('<dl class="rpt-facts">' + "".join(
"<div><dt>" + esc(x["label"]) + "</dt><dd>" + esc(x["value"]) + "</dd></div>" for x in f["facts"][:4]) + "</dl>")
pair = b.get("pair", [])[:2]
if pair:
out.append('<div class="rpt-pair">')
for p in pair:
out.append('<figure class="doc-figure rpt-pair__item">' + img(p["src"], p["alt"], p.get("focus")) +
"<figcaption>" + rich(p.get("caption", "")) + "</figcaption></figure>")
out.append("</div>")
out.append("</div></div>")
return "".join(out)
def b_row(b):
total = sum(c["span"] for c in b["cols"])
if total != 12:
raise SystemExit("Row columns must add up to 12. These add up to " + str(total) + ".")
out = ['<div class="doc-grid rpt-row">']
for c in b["cols"]:
out.append('<div class="doc-col-' + str(c["span"]) + '">' + "".join(block(x) for x in c["blocks"]) + "</div>")
out.append("</div>")
return "".join(out)
BLOCKS = {"stats": b_stats, "chart": b_chart, "table": b_table, "text": b_text, "subhead": b_subhead,
"callout": b_callout, "copy": b_copy, "note": b_note, "media": b_media, "row": b_row}
def block(b):
t = b.get("type")
if t not in BLOCKS:
raise SystemExit("Unknown block type " + str(t) + ". Use " + ", ".join(sorted(BLOCKS)) + ".")
return '<div class="rpt-block rpt-block--' + t + '">' + BLOCKS[t](b) + "</div>"
# --------------------------------------------------------------------- page --
def cover(c):
"""Navy cover. The photo never carries type. A landscape original runs as a full-width strip under the
navy. A portrait original runs as a tall 2:3 panel at the bottom right, bleeding off two
edges, with the lede and meta beside it. fill.py reads the file and picks, so nobody has to."""
if len(c["title"]) > 60:
raise SystemExit("Cover title is " + str(len(c["title"])) + " characters. Keep it to 60 or fewer, one finding, not a summary.")
if len(c["lede"]) > 260:
raise SystemExit("Cover lede is " + str(len(c["lede"])) + " characters. Keep it to 260 or fewer. The detail belongs on page 2.")
meta = "".join("<div><dt>" + esc(m["label"]) + "</dt><dd>" + esc(m["value"]) + "</dd></div>" for m in c["meta"][:3])
p = c["photo"]
tall = is_portrait(p["src"])
return ('<section class="doc-cover rpt-cover' + (" rpt-cover--tall" if tall else "") + '"><div class="doc-cover__top">'
'<img class="doc-cover__logo" src="' + TOKENS + 'logos/marathon-logo-white.svg" alt="Marathon Creative">'
'<span class="doc-eyebrow doc-cover__eyebrow">' + esc(c["eyebrow"]) + "</span>"
'<h1 class="doc-cover__title rpt-cover__title">' + esc(c["title"]) + "</h1>"
'<div class="rpt-cover__foot"><p class="doc-cover__lede">' + esc(c["lede"]) + "</p>"
'<dl class="doc-cover__meta">' + meta + "</dl></div></div>"
'<div class="doc-cover__photo">' + img(p["src"], p["alt"], p.get("focus")) + "</div></section>")
def section(s, first):
out = []
cls = "doc-opener rpt-opener" + (" doc-newpage" if s.get("newpage") and not first else "")
out.append('<div class="' + cls + '"><span class="doc-eyebrow">' + esc(s["eyebrow"]) + "</span>"
'<h1 class="doc-title">' + esc(s["title"]) + "</h1>" +
('<p class="doc-lede">' + esc(s["lede"]) + "</p>" if s.get("lede") else "") + "</div>")
out.extend(block(b) for b in s["blocks"])
return '<section class="rpt-section">' + "".join(out) + "</section>"
def page(d):
doc = d["doc"]
status = doc.get("status", "draft")
if status not in ("draft", "final"):
raise SystemExit("doc.status is draft or final.")
name = doc["name"].replace("'", "")
head = ('<!doctype html>\n<html lang="en" class="doc mc-doc" data-status="' + status + '" style="--doc-name: \'' + esc(name) + '\'">\n'
'<head>\n<meta charset="utf-8">\n<title>' + esc(doc["title"]) + "</title>\n"
'<link rel="stylesheet" href="' + TOKENS + 'tokens.css">\n'
'<link rel="stylesheet" href="' + DOCS + 'doc.css">\n'
'<link rel="stylesheet" href="' + CHARTS + 'charts.css">\n'
'<link rel="stylesheet" href="report.css">\n'
'<script src="' + CHARTS + 'charts.js" defer></script>\n</head>\n<body>\n'
"<!-- Generated by fill.py from report.json. Edit the JSON, not this file. -->\n")
mast = ('<header class="doc-masthead"><img class="doc-masthead__logo" src="' + TOKENS + 'logos/marathon-logo-dark.svg" alt="Marathon Creative">'
'<p class="doc-masthead__meta">' + "<br>".join(esc(x) for x in d["masthead"]) + "</p></header>")
body = [cover(d["cover"]), mast]
for i, s in enumerate(d["sections"]):
body.append(section(s, i == 0))
return head + "\n".join(body) + "\n</body>\n</html>\n"
def main(argv):
args = [a for a in argv if not a.startswith("--")]
photo = None
if "--photo" in argv:
photo = argv[argv.index("--photo") + 1]
args.remove(photo)
src = args[0] if args else os.path.join(HERE, "report.json")
out = args[1] if len(args) > 1 else os.path.join(HERE, "report.html")
with open(src, encoding="utf-8") as f:
d = json.load(f)
if photo:
d["cover"]["photo"] = {"src": photo, "alt": "Test photo " + os.path.basename(photo)}
d["doc"]["name"] = d["doc"]["name"] + ", photo test " + os.path.basename(photo)
for s in d["sections"]:
for b in s["blocks"]:
if b.get("type") == "media":
b["feature"]["src"] = photo
b["feature"].pop("focus", None)
b["feature"]["alt"] = "Test photo " + os.path.basename(photo)
with open(out, "w", encoding="utf-8") as f:
f.write(page(d))
print("wrote", out)
if __name__ == "__main__":
main(sys.argv[1:])
report.html25 lines, 23.0 KB
<!doctype html>
<html lang="en" class="doc mc-doc" data-status="draft" style="--doc-name: 'Marathon Creative, Rosehill Reserve monthly report, September 2026'">
<head>
<meta charset="utf-8">
<title>Rosehill Reserve, September 2026 performance report</title>
<link rel="stylesheet" href="../../../tokens/v/best/tokens.css">
<link rel="stylesheet" href="../../../docs-kit/v/best/doc.css">
<link rel="stylesheet" href="../../../charts/v/best/charts.css">
<link rel="stylesheet" href="report.css">
<script src="../../../charts/v/best/charts.js" defer></script>
</head>
<body>
<!-- Generated by fill.py from report.json. Edit the JSON, not this file. -->
<section class="doc-cover rpt-cover"><div class="doc-cover__top"><img class="doc-cover__logo" src="../../../tokens/v/best/logos/marathon-logo-white.svg" alt="Marathon Creative"><span class="doc-eyebrow doc-cover__eyebrow">Monthly performance report, September 2026</span><h1 class="doc-cover__title rpt-cover__title">186 buyer leads at $45 each from paid ads.</h1><div class="rpt-cover__foot"><p class="doc-cover__lede">Leads rose 14% on August and paid cost per lead fell 20%. 52 of those buyers booked a welcome center tour. Here is what drove it, what we delivered, and what we change in October.</p><dl class="doc-cover__meta"><div><dt>Prepared for</dt><dd>Rosehill Reserve marketing team</dd></div><div><dt>Reporting period</dt><dd>September 1 to 30, 2026</dd></div><div><dt>Issued</dt><dd>October 6, 2026</dd></div></dl></div></div><div class="doc-cover__photo"><img src="photos/mc_rosehill_17.jpg" alt="Rosehill Reserve entry monument with the retail center behind it, shot by Marathon Creative" style="object-position: 50% 62%"></div></section>
<header class="doc-masthead"><img class="doc-masthead__logo" src="../../../tokens/v/best/logos/marathon-logo-dark.svg" alt="Marathon Creative"><p class="doc-masthead__meta">Rosehill Reserve, September 2026<br>Prepared by Taylor Treybig, approved by Jacob Dow</p></header>
<section class="rpt-section"><div class="doc-opener rpt-opener"><span class="doc-eyebrow">01, The month in numbers</span><h1 class="doc-title">More buyers, cheaper leads, and faster replies.</h1><p class="doc-lede">Four numbers decide whether the month worked. All four moved the right way.</p></div><div class="rpt-block rpt-block--stats"><div class="doc-stats rpt-stats"><div class="mcc" data-mcc="stat"><script type="application/json">{"value": 186, "label": "Buyer leads in September", "delta": {"text": "Up 14% on August"}, "spark": [118, 131, 142, 150, 163, 186]}</script></div><div class="mcc" data-mcc="stat"><script type="application/json">{"value": 45, "format": {"type": "money"}, "label": "Paid ads cost per lead", "delta": {"text": "Down from $56 in August"}, "highlight": true}</script></div><div class="mcc" data-mcc="stat"><script type="application/json">{"value": 52, "label": "Welcome center tours booked", "delta": {"text": "28% of leads, was 24%"}}</script></div><div class="mcc" data-mcc="stat"><script type="application/json">{"value": "46", "unit": "sec", "label": "Median first reply, PaceCRM text", "delta": {"text": "Was 3 min 10 sec"}}</script></div></div></div><div class="rpt-block rpt-block--row"><div class="doc-grid rpt-row"><div class="doc-col-7"><div class="rpt-block rpt-block--subhead"><h3 class="doc-h3">What happened</h3></div><div class="rpt-block rpt-block--text"><p>We moved Google budget off broad new home searches and onto the community name and the six builder names. Those terms cost $39 a lead against $59 for the broad terms, and they book tours at nearly twice the rate.</p><p>The sunrise drone Reel shot on September 3 reached 11,420 accounts, the best post the community has had. We turned the same footage into the Meta amenity ad, which became the cheapest paid campaign at $38 a lead.</p><p>PaceCRM now texts every new lead within a minute, day or night. <strong>Median first reply fell from three minutes to 46 seconds</strong>, and the welcome center team calls the same day for 91% of leads.</p></div></div><div class="doc-col-5"><div class="rpt-block rpt-block--callout"><aside class="doc-callout rpt-callout"><span class="doc-eyebrow">Key takeaways</span><p class="doc-callout__title">What we change in October</p><ul class="doc-list"><li>Shift $600 more to community name and builder terms</li><li>Run the Fall Festival campaign, October 25</li><li>Shoot the second model home row at twilight</li><li>Add calendar booking to the website tour form</li><li>Mail 2,500 homesite postcards</li></ul></aside></div></div></div></div></section>
<section class="rpt-section"><div class="doc-opener rpt-opener doc-newpage"><span class="doc-eyebrow">02, Channel performance</span><h1 class="doc-title">Paid ads brought in 135 of 186 leads.</h1><p class="doc-lede">Google Search found the most buyers. Organic search and PaceCRM nurture filled in another 42 at no media cost.</p></div><div class="rpt-block rpt-block--chart"><figure class="mcc rpt-chart" data-mcc="stacked"><p class="mcc-eyebrow">Six-month trend</p><h3 class="mcc-title">Monthly leads are up 58% since April</h3><div class="mcc-plot"></div><figcaption class="mcc-source">Leads per month by channel group. Paid ads is Google Search plus Meta. Source: PaceCRM.</figcaption><script type="application/json">{"label": "Leads per month by channel, April to September 2026", "focus": "last", "categories": ["Apr", "May", "Jun", "Jul", "Aug", "Sep"], "series": [{"name": "Paid ads", "values": [78, 87, 94, 99, 105, 135]}, {"name": "Organic", "values": [20, 22, 24, 25, 28, 27]}, {"name": "Email and SMS", "values": [12, 13, 15, 16, 19, 15]}, {"name": "Referral", "values": [8, 9, 9, 10, 11, 9]}]}</script></figure></div><div class="rpt-block rpt-block--table"><table class="doc-table rpt-table"><thead><tr><th>Channel</th><th class="num">Spend</th><th class="num">Leads</th><th class="num">Cost per lead</th><th class="num">Tours booked</th><th class="num">Lead to tour</th></tr></thead><tbody><tr><td class="item">Google Search Ads</td><td class="num">$3,420</td><td class="num">71</td><td class="num">$48</td><td class="num">22</td><td class="num">31%</td></tr><tr><td class="item">Meta Ads</td><td class="num">$2,610</td><td class="num">64</td><td class="num">$41</td><td class="num">13</td><td class="num">20%</td></tr><tr><td class="item">Organic search and Google Business Profile</td><td class="num">None</td><td class="num">27</td><td class="num">None</td><td class="num">9</td><td class="num">33%</td></tr><tr><td class="item">Email and SMS nurture</td><td class="num">None</td><td class="num">15</td><td class="num">None</td><td class="num">6</td><td class="num">40%</td></tr><tr><td class="item">Referral and walk-in</td><td class="num">None</td><td class="num">9</td><td class="num">None</td><td class="num">2</td><td class="num">22%</td></tr></tbody><tfoot><tr class="rpt-total"><td>All channels</td><td class="num">$6,030</td><td class="num">186</td><td class="num">$45 paid</td><td class="num">52</td><td class="num">28%</td></tr></tfoot><caption>Spend is media spend only, before Marathon management fees. Cost per lead is shown for paid channels. Lead to tour is tours booked divided by leads in the same month.</caption></table></div></section>
<section class="rpt-section"><div class="doc-opener rpt-opener doc-newpage"><span class="doc-eyebrow">03, Paid ads</span><h1 class="doc-title">Google cost per lead fell from $59 to $48.</h1></div><div class="rpt-block rpt-block--chart"><figure class="mcc rpt-chart" data-mcc="line"><h3 class="mcc-title">Both platforms got cheaper in September</h3><div class="mcc-plot"></div><figcaption class="mcc-source">Monthly ad spend divided by new leads, April to September 2026. Source: Google Ads, Meta Ads Manager, and PaceCRM.</figcaption><script type="application/json">{"label": "Cost per lead by month", "format": {"type": "money"}, "categories": ["Apr", "May", "Jun", "Jul", "Aug", "Sep"], "series": [{"name": "Google Search", "values": [66, 63, 61, 58, 59, 48], "highlight": true}, {"name": "Meta Ads", "values": [52, 50, 49, 47, 52, 41]}], "annotations": [{"series": 0, "index": 5, "text": "Exact-match terms live Sep 2"}]}</script></figure></div><div class="rpt-block rpt-block--table"><table class="doc-table rpt-table doc-table--fixed"><colgroup><col style="width: 2.55in"><col style="width: 1.3in"><col><col><col><col><col></colgroup><thead><tr><th>Campaign</th><th>Platform</th><th class="num">Spend</th><th class="num">Clicks</th><th class="num">Leads</th><th class="num">Cost per lead</th><th class="num">Tours</th></tr></thead><tbody><tr><td class="item">Community name and builder terms</td><td>Google Search</td><td class="num">$1,480</td><td class="num">612</td><td class="num">38</td><td class="num">$39</td><td class="num">13</td></tr><tr><td class="item">New homes under $400K</td><td>Google Search</td><td class="num">$1,940</td><td class="num">1,077</td><td class="num">33</td><td class="num">$59</td><td class="num">9</td></tr><tr><td class="item">Pool and trails amenity video</td><td>Meta</td><td class="num">$1,350</td><td class="num">1,904</td><td class="num">36</td><td class="num">$38</td><td class="num">7</td></tr><tr><td class="item">Move-in ready homes carousel</td><td>Meta</td><td class="num">$1,260</td><td class="num">1,388</td><td class="num">28</td><td class="num">$45</td><td class="num">6</td></tr></tbody><tfoot><tr class="rpt-total"><td>All paid campaigns</td><td></td><td class="num">$6,030</td><td class="num">4,981</td><td class="num">135</td><td class="num">$45</td><td class="num">35</td></tr></tfoot><caption>Leads are form fills and calls tracked in PaceCRM. Tours are booked visits to the welcome center or a model home.</caption></table></div><div class="rpt-block rpt-block--row"><div class="doc-grid rpt-row"><div class="doc-col-6"><div class="rpt-block rpt-block--subhead"><h3 class="doc-h3">What worked</h3></div><div class="rpt-block rpt-block--text"><p>Buyers who search the community or a builder by name already know where they want to live. They cost $39 a lead and one in three booked a tour. We raised that campaign's daily cap twice in September and it never ran out of searches.</p></div></div><div class="doc-col-6"><div class="rpt-block rpt-block--subhead"><h3 class="doc-h3">What we cut</h3></div><div class="rpt-block rpt-block--text"><p>The broad under $400K campaign still finds new buyers, so it stays, but at $59 a lead it gets $600 less in October. We added 38 negative keywords, including apartments, rent, and lease.</p></div></div></div></div></section>
<section class="rpt-section"><div class="doc-opener rpt-opener doc-newpage"><span class="doc-eyebrow">04, Email and SMS</span><h1 class="doc-title">PaceCRM answered every lead in under a minute.</h1></div><div class="rpt-block rpt-block--chart"><figure class="mcc rpt-chart" data-mcc="steps"><p class="mcc-eyebrow">How a lead moves</p><h3 class="mcc-title">From form fill to tour in under a day</h3><div class="mcc-plot"></div><figcaption class="mcc-source">Median times and counts for September 2026. Source: PaceCRM.</figcaption><script type="application/json">{"steps": [{"title": "Form or call", "text": "Google, Meta, the website, or a call", "figure": "186 leads"}, {"title": "Text reply", "text": "PaceCRM texts a tour link", "figure": "46 sec median"}, {"title": "Call", "text": "Welcome center calls the same day", "figure": "91% same day"}, {"title": "Tour booked", "text": "Welcome center or a model home", "figure": "52 tours", "highlight": true}, {"title": "Nurture", "text": "Six-week email and text sequence", "figure": "1,148 enrolled"}]}</script></figure></div><div class="rpt-block rpt-block--table"><table class="doc-table rpt-table doc-table--fixed"><colgroup><col style="width: 2.45in"><col style="width: 1.25in"><col><col><col style="width: 1.5in"><col></colgroup><thead><tr><th>Send</th><th>Channel</th><th class="num">Date</th><th class="num">Sent</th><th class="num">Response</th><th class="num">Tours</th></tr></thead><tbody><tr><td class="item">Fall homesite release</td><td>Email</td><td class="num">Sep 4</td><td class="num">4,812</td><td class="num">38% open, 4.1% click</td><td class="num">3</td></tr><tr><td class="item">Model home weekend invite</td><td>SMS</td><td class="num">Sep 12</td><td class="num">1,206</td><td class="num">9.2% reply</td><td class="num">2</td></tr><tr><td class="item">September community newsletter</td><td>Email</td><td class="num">Sep 18</td><td class="num">4,790</td><td class="num">34% open, 2.6% click</td><td class="num">0</td></tr><tr><td class="item">New lead nurture, six touches</td><td>Email and SMS</td><td class="num">Ongoing</td><td class="num">1,148</td><td class="num">21% reply</td><td class="num">1</td></tr></tbody><tfoot><tr class="rpt-total"><td>All sends</td><td></td><td class="num"></td><td class="num">11,956</td><td class="num"></td><td class="num">6</td></tr></tfoot></table></div><div class="rpt-block rpt-block--row"><div class="doc-grid rpt-row"><div class="doc-col-7"><div class="rpt-block rpt-block--copy"><div class="doc-copy"><div class="doc-copy__head"><span class="doc-eyebrow">Best send, verbatim</span><span class="doc-copy__meta">PaceCRM email, September 4</span></div><div class="doc-copy__body"><p>Subject: The fall homesites are released</p><p>Hello <span class="doc-tag"><Contact Name></span>,</p><p>Fourteen new homesites opened at Rosehill Reserve this week, five of them backing to the trail. Builders hold them for 14 days for buyers who tour first. Pick a time and we will have the welcome center ready.</p></div></div></div></div><div class="doc-col-5"><div class="rpt-block rpt-block--note"><aside class="doc-note doc-note--compliance"><span class="doc-note__label">Compliance</span><p>Texts go only to contacts who checked the consent box on the lead form. Every text carries Reply STOP to opt out, and PaceCRM holds sends between 9pm and 9am. Open rates above exclude Apple Mail Privacy Protection auto-opens.</p></aside></div></div></div></div></section>
<section class="rpt-section"><div class="doc-opener rpt-opener doc-newpage"><span class="doc-eyebrow">05, Social</span><h1 class="doc-title">Reels reached twice as many people as anything else.</h1><p class="doc-lede">18 posts and 22 stories on Instagram and Facebook. The drone footage did the heavy lifting.</p></div><div class="rpt-block rpt-block--stats"><div class="doc-stats rpt-stats doc-stats--3"><div class="mcc" data-mcc="stat"><script type="application/json">{"value": "48.2K", "label": "Accounts reached", "delta": {"text": "Up 22% on August"}}</script></div><div class="mcc" data-mcc="stat"><script type="application/json">{"value": "4.8", "unit": "%", "label": "Engagement rate", "delta": {"text": "Was 3.9%"}, "highlight": true}</script></div><div class="mcc" data-mcc="stat"><script type="application/json">{"value": 312, "label": "New followers", "delta": {"text": "Instagram and Facebook combined"}}</script></div></div></div><div class="rpt-block rpt-block--chart"><figure class="mcc rpt-chart" data-mcc="bar"><h3 class="mcc-title">A Reel reached 6,840 accounts on average</h3><div class="mcc-plot"></div><figcaption class="mcc-source">Average accounts reached per post by format, September 2026. Source: Meta Business Suite.</figcaption><script type="application/json">{"label": "Average reach by post format", "data": [{"label": "Reels, eight posts", "value": 6840, "highlight": true}, {"label": "Carousels, five posts", "value": 3120}, {"label": "Single photos, five posts", "value": 1940}, {"label": "Stories, 22 frames", "value": 1210}]}</script></figure></div><div class="rpt-block rpt-block--table"><table class="doc-table rpt-table"><thead><tr><th>Top posts</th><th>Format</th><th class="num">Date</th><th class="num">Reach</th><th class="num">Saves</th><th class="num">Link clicks</th></tr></thead><tbody><tr><td class="item">Sunrise over the lakes, drone</td><td>Reel</td><td class="num">Sep 9</td><td class="num">11,420</td><td class="num">286</td><td class="num">94</td></tr><tr><td class="item">Pool and splash pad, last week of summer</td><td>Reel</td><td class="num">Sep 2</td><td class="num">8,960</td><td class="num">142</td><td class="num">51</td></tr><tr><td class="item">Five homesites backing to the trail</td><td>Carousel</td><td class="num">Sep 16</td><td class="num">5,310</td><td class="num">201</td><td class="num">77</td></tr><tr><td class="item">Meet the builders at the welcome center</td><td>Single photo</td><td class="num">Sep 23</td><td class="num">2,480</td><td class="num">38</td><td class="num">29</td></tr></tbody><caption>Link clicks go to the tour booking page. Saves are the best early sign a buyer is planning a visit.</caption></table></div></section>
<section class="rpt-section"><div class="doc-opener rpt-opener doc-newpage"><span class="doc-eyebrow">06, Listing media delivered</span><h1 class="doc-title">64 stills, three video cuts, and two Showcase tours.</h1></div><div class="rpt-block rpt-block--media"><div class="doc-grid rpt-media rpt-media--tall"><figure class="doc-figure rpt-media__photo doc-col-4"><img src="photos/mc_rosehill_18.jpg" alt="Aerial looking down a street of new homes at Rosehill Reserve toward the tree line" style="object-position: 50% 50%"></figure><div class="rpt-media__side doc-col-8"><span class="doc-eyebrow">Shot of the month</span><h2 class="doc-h3 rpt-media__title">Community and amenity aerials</h2><p class="rpt-media__text">32 drone stills from the September 3 sunrise flight, delivered by 9am the next business day. They now lead the website gallery, the Google Business Profile, and both Meta campaigns.</p><dl class="rpt-facts"><div><dt>Shot</dt><dd>Sep 3, 7:05am</dd></div><div><dt>Delivered</dt><dd>Sep 4, 9am</dd></div><div><dt>Turnaround</dt><dd>19 hr</dd></div><div><dt>Files</dt><dd>32 stills</dd></div></dl><div class="rpt-pair"><figure class="doc-figure rpt-pair__item"><img src="photos/mc_rosehill_16.jpg" alt="Aerial of Rosehill Reserve with two lakes, the amenity center, and the pool" style="object-position: 50% 45%"><figcaption><strong>Amenity center and lakes.</strong> Used in the Meta amenity ad, $38 a lead.</figcaption></figure><figure class="doc-figure rpt-pair__item"><img src="photos/mc_rosehill_17.jpg" alt="Rosehill Reserve entry monument with retail behind it" style="object-position: 50% 60%"><figcaption><strong>Entry monument and retail.</strong> 14 stills for the website and print.</figcaption></figure></div></div></div></div><div class="rpt-block rpt-block--table"><table class="doc-table rpt-table doc-table--fixed"><colgroup><col style="width: 2.6in"><col><col><col><col style="width: 1.25in"></colgroup><thead><tr><th>Deliverable</th><th class="num">Shot</th><th class="num">Delivered</th><th class="num">Turnaround</th><th class="num">Files</th></tr></thead><tbody><tr><td class="item">Community and amenity aerials</td><td class="num">Sep 3</td><td class="num">Sep 4, 9am</td><td class="num">19 hr</td><td class="num">32 stills</td></tr><tr><td class="item">Entry monument and retail frontage</td><td class="num">Sep 3</td><td class="num">Sep 4, 9am</td><td class="num">19 hr</td><td class="num">14 stills</td></tr><tr><td class="item">Model home row, twilight</td><td class="num">Sep 10</td><td class="num">Sep 11, 9am</td><td class="num">15 hr</td><td class="num">18 stills</td></tr><tr><td class="item">Zillow Showcase tours, two models</td><td class="num">Sep 10</td><td class="num">Sep 12</td><td class="num">48 hr</td><td class="num">Two tours</td></tr><tr><td class="item">Pool and trails amenity video</td><td class="num">Sep 3</td><td class="num">Sep 8</td><td class="num">Five days</td><td class="num">60 sec, two cuts</td></tr><tr><td class="item">Drone Reel, sunrise over the lakes</td><td class="num">Sep 3</td><td class="num">Sep 6</td><td class="num">Three days</td><td class="num">30 sec Reel</td></tr></tbody><caption>Marathon is Zillow Showcase certified, so both tours qualified for the Showcase gallery on the first visit.</caption></table></div></section>
<section class="rpt-section"><div class="doc-opener rpt-opener doc-newpage"><span class="doc-eyebrow">07, October plan</span><h1 class="doc-title">Five changes for October, each with an owner and a date.</h1><p class="doc-lede">October targets: 200 leads, under $45 a paid lead, 56 tours.</p></div><div class="rpt-block rpt-block--table"><table class="doc-table rpt-table doc-table--fixed"><colgroup><col style="width: 2.3in"><col><col style="width: 1.6in"><col style="width: 0.8in"></colgroup><thead><tr><th>Action</th><th>Why</th><th>Owner</th><th class="num">Done by</th></tr></thead><tbody><tr><td class="item">Shift $600 to community name and builder terms</td><td>$39 a lead against $59 on broad terms</td><td>Marathon, paid ads</td><td class="num">Oct 9</td></tr><tr><td class="item">Fall Festival campaign, email, SMS, and Meta event ads</td><td>Event weekends booked 11 tours in May</td><td>Marathon and your events team</td><td class="num">Oct 10</td></tr><tr><td class="item">Twilight shoot, second model home row</td><td>Twilight stills lead the best carousels</td><td>Marathon, photo</td><td class="num">Oct 14</td></tr><tr><td class="item">Calendar booking on the website tour form</td><td>Cuts the call step for buyers who know their time</td><td>Marathon, PaceCRM</td><td class="num">Oct 20</td></tr><tr><td class="item">2,500 homesite postcards, printed and mailed to homes</td><td>Reaches renters within five miles who are not on social</td><td>Marathon, print</td><td class="num">Oct 24</td></tr></tbody></table></div><div class="rpt-block rpt-block--row"><div class="doc-grid rpt-row"><div class="doc-col-7"><div class="rpt-block rpt-block--callout"><aside class="doc-callout rpt-callout"><span class="doc-eyebrow">What we need from you</span><p class="doc-callout__title">Three decisions by October 15</p><ul class="doc-list"><li>Approve the $900 festival ad budget by Oct 9</li><li>Confirm move-in ready homes by Oct 8</li><li>Sign off on the postcard proof by Oct 15</li></ul></aside></div></div><div class="doc-col-5"><div class="rpt-block rpt-block--subhead"><h3 class="doc-h3">Questions about this report</h3></div><div class="rpt-block rpt-block--text"><p>Taylor Treybig runs this account day to day. Reply to the report email and you get an answer the same business day. The October report arrives November 5.</p></div></div></div></div><div class="rpt-block rpt-block--note"><aside class="doc-note doc-note--editor"><span class="doc-note__label">Editor note, internal only</span><p><strong>Jacob to confirm before this goes out.</strong> Every figure in this report is example data for a master-planned community account, including the $900 festival budget, the $600 shift, and the 2,500 postcard run. Replace it with the month's PaceCRM, Google Ads, Meta, and delivery log exports, then set status to final.</p></aside></div></section>
</body>
</html>
pair.py31 lines, 1.4 KB
# Puts page 1 (cover) beside the listing media page of a test PDF, at 150dpi, under a label strip.
# Colours come from the token layer's tokens.json, never typed here.
# Usage: python3 pair.py <in.pdf> <out.png> <photo name>
import json, os, sys
import fitz
from PIL import Image, ImageDraw, ImageFont
HERE = os.path.dirname(os.path.abspath(__file__))
TOK = json.load(open(os.path.join(HERE, "../../../tokens/v/best/tokens.json"), encoding="utf-8"))
PRIM = TOK["color"]["primitive"]
NAVY, BOARD = PRIM["navy-100"]["hex"], PRIM["gray-200"]["hex"]
FONT = os.path.join(HERE, "../../../docs-kit/v/best/fonts/Montserrat-600.ttf")
src, out, label = sys.argv[1], sys.argv[2], sys.argv[3]
doc = fitz.open(src)
media = next(i for i in range(doc.page_count) if "LISTINGMEDIADELIVERED" in "".join(doc[i].get_text().upper().split()))
pages = []
for i in (0, media):
pix = doc[i].get_pixmap(dpi=150)
pages.append(Image.frombytes("RGB", (pix.width, pix.height), pix.samples))
gap, strip = 40, 90
sheet = Image.new("RGB", (sum(p.width for p in pages) + gap * 3, pages[0].height + strip + gap), BOARD)
x = gap
for p in pages:
sheet.paste(p, (x, strip))
x += p.width + gap
ImageDraw.Draw(sheet).text((gap, 28), "Photo test: " + label + ".jpg in both photo slots. Left, cover. Right, listing media, page " + str(media + 1) + ".",
fill=NAVY, font=ImageFont.truetype(FONT, 30))
sheet.save(out)
print("wrote", out)
phototest.sh16 lines, 752 bytes
#!/bin/sh
# Photo robustness test. Drops one photo into both photo slots (cover and shot of the month), prints the
# report, and saves the cover beside the listing media page. Run from the repo root:
# sh build/report/v/r01/phototest.sh
R=$(dirname "$0")
T="$R/renders/_phototest"
mkdir -p "$T"
for pair in interior:mc_retouched_03 aerial:mc_rosehill_16 portrait:mc_retouched_08 boundary:mc_fullres_12; do
name=${pair%%:*}; photo=${pair#*:}
python3 "$R/fill.py" "$R/report.json" "$R/test-$name.html" --photo "photos/$photo.jpg" || exit 1
node build/_shared/render.mjs pdf "$R/test-$name.html" "$T/$name.pdf"
rm -f "$T/$name"-p*.png
python3 "$R/pair.py" "$T/$name.pdf" "$R/renders/photo-$name.png" "$photo"
rm -f "$R/test-$name.html"
done
render.sh10 lines, 465 bytes
#!/bin/sh
# Fills report.html from report.json, prints it to PDF, and rasterizes every page at 150dpi.
# Run from the repo root: sh build/report/v/r01/render.sh
R=$(dirname "$0")
python3 "$R/fill.py" || exit 1
node build/_shared/render.mjs pdf "$R/report.html" "$R/renders/report.pdf"
find "$R/renders" -maxdepth 1 -name 'p[0-9]*.png' -delete
python3 build/_shared/raster.py "$R/renders/report.pdf" "$R/renders" 150
cp "$R/renders/p01.png" "$R/renders/primary.png"












