/* global React, ReactDOM, PROFILES, PALETTES, MATERIALS, BOARD_COST, POST_COST, PROFIT_MULT, GATE_COST, Fence, TweaksPanel, TweakSection, TweakRadio, TweakColor, TweakToggle, TweakSelect, useTweaks */
const { useState, useMemo, useRef, useEffect } = React;
const DEFAULT_TWEAKS = /*EDITMODE-BEGIN*/{
"palette": "Muted",
"background": "#F4EFE6",
"ink": "#181612",
"marqueeOn": true
}/*EDITMODE-END*/;
// ============ UI BLOCKS ============
function NorthcuttLogoMark({ size = 64, ink = 'currentColor', bg = 'var(--logo-bg, rgba(0,0,0,0))' }) {
const w = size;
const h = Math.round(size * 1.15);
return (
);
}
function NorthcuttLockup({ size = 'sm', ink, subtitle }) {
const markSize = size === 'lg' ? 90 : 38;
return (
NORTHCUTT
CONSTRUCTION
{subtitle && {subtitle} }
);
}
function Nav({ palette, onJump }) {
return (
{e.preventDefault(); onJump('top');}}>
);
}
function Hero({ palette, marqueeOn }) {
const [hoverIdx, setHoverIdx] = useState(null);
return (
Fences built for your property—
and built to last.
Five fence profiles, measured for grade and gates, line-item quoted before the first board is cut. Stain, paint, or natural — your finish, our build.
5 Profiles
100% Measured before cut
15+ yr Lifespan target
{marqueeOn && (
{Array.from({length: 3}).map((_, n) => (
Privacy + Square Lattice
Privacy + Diamond Lattice
Horizontal Plank
Capped Stockade
Solid Board Privacy
))}
)}
);
}
function ProfilesSection({ palette, onOpenGuide }) {
return (
§ 01 Fence profiles
Five profiles for your lot
and your aesthetic.
From maximum backyard enclosure to decorative trim. Every profile has trade-offs in screening, airflow, cost, and wind load — pick the one that solves your mix.
{PROFILES.map((p, i) => {
const color = palette[i % palette.length];
return (
{p.tag}
{p.kicker}
{p.name}
{p.blurb}
);
})}
);
}
function Bar({ label, value, color }) {
return (
);
}
function CompareSection({ palette }) {
const rows = [
{ label: 'Best for', vals: ['Privacy + curb appeal', 'Traditional homes', 'Modern homes, decks', 'Backyard, premium feel', 'Side yards, courtyards'] },
{ label: 'Typical height', vals: ['6–8 ft', '6–8 ft', '6–7 ft', '6–8 ft', '5–6 ft'] },
{ label: 'Privacy', vals: ['High', 'High', 'Adjustable', 'Highest', 'High'] },
{ label: 'Wind load', vals: ['High', 'High', 'High', 'High', 'Medium'] },
{ label: 'Cost', vals: ['$$$', '$$$', '$$$$', '$$$', '$$'] },
];
return (
§ 02 Compare
Which fence matches your priority?
{PROFILES.map((p, i) => (
{p.tag}
{p.name}
))}
{rows.map((row) => (
{row.label}
{row.vals.map((v, i) => (
{v}
))}
))}
);
}
function Configurator({ palette }) {
const [profile, setProfile] = useState(0);
const [color, setColor] = useState(palette[0]);
const [bg, setBg] = useState('yard');
const [intensity, setIntensity] = useState(0.78);
const [photoSrc, setPhotoSrc] = useState(PROFILES[0].photo);
const profileData = PROFILES[profile];
useEffect(() => {
setColor(palette[profile]);
setPhotoSrc(PROFILES[profile].photo);
}, [palette, profile]);
const bgs = {
yard: 'linear-gradient(180deg, #E9DCC1 0%, #D7C49E 60%, #8A9A6B 60%, #6B8050 100%)',
drive: 'linear-gradient(180deg, #DDD6CC 0%, #C4B8A6 50%, #6E6863 50%, #4F4944 100%)',
pool: 'linear-gradient(180deg, #C3D9E0 0%, #8EB6C2 50%, #D9CBA8 50%, #B8A37D 100%)',
night: 'linear-gradient(180deg, #2B3145 0%, #1C2235 60%, #0E1322 60%, #060912 100%)',
};
return (
§ 03 Colorize the fence
Try it on. Right now.
Pick a profile, a base fence, and a finish. Stain, paint, or natural — we build for the look you choose.
{profileData.tag}
{profileData.name}
Profile
{PROFILES.map((p, i) => (
setProfile(i)}
>
{p.tag} {p.name}
))}
Base fence
{profileData.alternates.map((src) => (
setPhotoSrc(src)}
style={{'--accent': color}}
>
))}
Finish
{[
{ v: '#8B6A3F', n: 'Walnut stain' },
{ v: '#A56B3A', n: 'Cedar tone' },
{ v: '#D9C9A8', n: 'Bone white' },
{ v: '#1F2A2E', n: 'Onyx' },
...palette.map((c, i) => ({ v: c, n: ['Terra','Olive','Cobalt','Marigold','Plum'][i] || 'Custom' })),
].map((f) => (
setColor(f.v)}
title={f.n}
>
{f.n}
))}
Setting
{[
{k:'yard',l:'Backyard'},
{k:'drive',l:'Driveway'},
{k:'pool',l:'Poolside'},
{k:'night',l:'Dusk'},
].map(s => (
setBg(s.k)}>
{s.l}
))}
Stain opacity {Math.round(intensity * 100)}%
setIntensity(+e.target.value)}
className="intensity-slider"
style={{'--accent': color}}
/>
Natural wood
Solid paint
);
}
function ProjectsSection({ palette }) {
const [lightbox, setLightbox] = useState(null);
// Each profile gets a real install photo + title naming the profile and the site context.
const items = [
{ tag: '01', loc: 'Healdsburg · 2025', name: 'Privacy + Square Lattice', sub: 'Backyard run · cedar finish', color: palette[0], photo: 'projects/privacy-square-lattice.png' },
{ tag: '02', loc: 'Sebastopol · 2024', name: 'Privacy + Diamond Lattice', sub: 'Garden border · diamond crown', color: palette[1], photo: 'projects/privacy-diamond-lattice.png' },
{ tag: '03', loc: 'St Helena · 2024', name: 'Horizontal Plank · Modern', sub: 'Two-tone backyard · 6 ft height', color: palette[2], photo: 'projects/horizontal-plank.png' },
{ tag: '04', loc: 'Petaluma · 2024', name: 'Capped Stockade', sub: 'Poolside · cedar + post caps', color: palette[3], photo: 'projects/capped-stockade.png' },
{ tag: '05', loc: 'Windsor · 2024', name: 'Solid Board Privacy', sub: 'Backyard retreat · 6 ft cedar', color: palette[4], photo: 'projects/solid-board-privacy.png' },
];
return (
§ 04 Recent installs
Real projects, real grade.
Every job is laid out for slope, utilities, and gate swing before a board is cut. Tap any photo to enlarge.
{items.map((it, i) => (
it.photo && setLightbox({...it, idx: i})}
aria-label={`Open ${it.name}`}
>
{it.photo ? (
) : (
Photo coming soon
)}
{it.photo && (
)}
{it.tag}
{it.name}
{it.sub}
{it.loc}
))}
{lightbox && (
setLightbox(null)}
onNav={(delta) => {
const next = (lightbox.idx + delta + items.length) % items.length;
setLightbox({...items[next], idx: next});
}}
/>
)}
);
}
function PhotoLightbox({ item, items, onClose, onNav }) {
useEffect(() => {
const onKey = (e) => {
if (e.key === 'Escape') onClose();
if (e.key === 'ArrowRight') onNav(1);
if (e.key === 'ArrowLeft') onNav(-1);
};
document.body.style.overflow = 'hidden';
window.addEventListener('keydown', onKey);
return () => {
document.body.style.overflow = '';
window.removeEventListener('keydown', onKey);
};
}, [onClose, onNav]);
return (
×
{ e.stopPropagation(); onNav(-1); }}
aria-label="Previous"
>‹
{ e.stopPropagation(); onNav(1); }}
aria-label="Next"
>›
e.stopPropagation()}>
{item.tag} · {item.loc}
{item.name}
{item.sub}
{item.idx + 1}
/
{items.length}
);
}
function _PhotoSlotUnused({ color, label }) {
return (
{label.toUpperCase()}
);
}
function ApproachSection({ palette }) {
const items = [
{
tag: '01',
title: 'Site-specific layout',
body: 'Slope, utilities, and gate swing are mapped before a board is cut. We chalk the line in person, not from a satellite photo.',
color: palette[0],
},
{
tag: '02',
title: 'Graded lumber & hardware',
body: 'Lumber selected for your finish — stain, sealer, or natural weathering — paired with hardware that matches the look you want for the next 15 years.',
color: palette[2],
},
{
tag: '03',
title: 'Line-item quotes',
body: 'You see the scope before you say yes. Posts, footings, panels, gates, hardware, finish — each priced on its own line.',
color: palette[3],
},
{
tag: '04',
title: 'Code & HOA-ready',
body: 'We build to your jurisdiction and write HOA-friendly language you can forward to the board if your community has design review.',
color: palette[4],
},
];
return (
§ 05 Approach
Fencing as part of your exterior—not an afterthought.
);
}
// Per-profile material breakdown — categories a homeowner can match to a real fence:
// Boards = the face pickets (or horizontal planks)
// Posts = 4×4×8 PT structural posts
// Backer rails = 2×4 horizontal stringers the boards nail to (2–3 per panel)
// Kicker board = 2×6 pressure-treated rot/mow board at ground level
// Trim boards = top cap rail, post caps, decorative trim
// Lattice = 2 ft lattice panel for the top section (lattice profiles only)
// Concrete = fast-setting concrete to set the posts
// Hardware = galvanized fasteners, brackets, post caps
// Prices are per linear foot of finished fence.
const FENCE_ECON = {
"square-lattice-top": {
items: [
{ label: "Fence Boards", per: 5.70 },
{ label: "Posts", per: 1.80 },
{ label: "Backer rails", per: 2.25 },
{ label: "Kicker board", per: 1.50 },
{ label: "Trim boards", per: 1.25 },
{ label: "Lattice (square)", per: 3.75 },
{ label: "Concrete", per: 1.10 },
{ label: "Hardware", per: 1.50 },
],
laborFactor: 1.15,
},
"diamond-lattice-top": {
items: [
{ label: "Fence Boards", per: 5.70 },
{ label: "Posts", per: 1.80 },
{ label: "Backer rails", per: 2.25 },
{ label: "Kicker board", per: 1.50 },
{ label: "Trim boards", per: 1.25 },
{ label: "Lattice (diamond)", per: 2.05 },
{ label: "Concrete", per: 1.10 },
{ label: "Hardware", per: 1.50 },
],
laborFactor: 1.15,
},
"horizontal-plank": {
items: [
{ label: "Fence Boards", per: 6.85 }, // straight-grain stock
{ label: "Posts", per: 2.40 }, // 6 ft o.c. — tighter spacing
{ label: "Kicker board", per: 1.50 },
{ label: "Trim boards", per: 1.50 },
{ label: "Concrete", per: 1.50 }, // more posts
{ label: "Hardware", per: 2.25 }, // hidden fasteners
],
laborFactor: 1.10,
},
"capped-stockade": {
items: [
{ label: "Fence Boards", per: 5.70 },
{ label: "Posts", per: 1.80 },
{ label: "Backer rails", per: 2.25 },
{ label: "Kicker board", per: 1.50 },
{ label: "Trim boards", per: 2.10 }, // cap rail + chamfered post caps
{ label: "Concrete", per: 1.10 },
{ label: "Hardware", per: 1.50 },
],
laborFactor: 1.05,
},
"solid-board-privacy": {
items: [
{ label: "Fence Boards", per: 5.70 },
{ label: "Posts", per: 1.80 },
{ label: "Backer rails", per: 1.50 }, // 2 rails
{ label: "Kicker board", per: 1.50 },
{ label: "Trim boards", per: 1.00 }, // cap rail
{ label: "Concrete", per: 1.10 },
{ label: "Hardware", per: 1.50 },
],
laborFactor: 1.00,
},
};
const CREW_RATE = 190; // 2 workers @ $20/hr + 1 owner @ $100/hr + $50/hr added labor
const CREW_DAY = 8; // hours / day
const CREW_PROD = 70; // LF / day
const FENCE_HEIGHT = 6; // ft, used for sqft conversion
const HAUL_LF = 4.00; // $/lf to tear out + dispose of existing fence
function fmtUSD(n, dec = 2) {
return '$' + n.toLocaleString('en-US', { minimumFractionDigits: dec, maximumFractionDigits: dec });
}
function fmtK(n) {
if (n >= 10000) return '$' + (n / 1000).toFixed(1) + 'k';
return '$' + Math.round(n).toLocaleString('en-US');
}
function QuoteSection({ palette }) {
const [linear, setLinear] = useState(120);
const [profileIdx, setProfileIdx] = useState(0);
const [haulAway, setHaulAway] = useState(false);
const profile = PROFILES[profileIdx];
const econ = FENCE_ECON[profile.id];
// Internal cost basis
const matLFcost = econ.items.reduce((s, it) => s + it.per, 0);
const laborLFcost = (CREW_RATE * CREW_DAY / CREW_PROD) * econ.laborFactor;
const haulLFcost = haulAway ? HAUL_LF : 0;
// What the customer sees — all line items are marked up so they add to Customer price.
const matLF = matLFcost * PROFIT_MULT;
const laborLF = laborLFcost * PROFIT_MULT;
const haulLF = haulLFcost * PROFIT_MULT;
const sellLF = matLF + laborLF + haulLF;
const tMatAll = matLF * linear;
const tLab = laborLF * linear;
const tHaul = haulLF * linear;
const tSell = sellLF * linear;
const bars = econ.items.map(it => ({
label: it.label,
val: it.per * PROFIT_MULT * linear,
}));
const barMax = Math.max(...bars.map(b => b.val), 1);
const accent = palette[profileIdx];
return (
§ 06 Get a quote
Ballpark in 30 seconds.Written quote in 48 hours.
Pricing built from real materials — boards, posts, backer rails, kicker boards, trim, concrete, and hardware — plus crew labor. Submit the form and we'll come measure for grade, gates, and property line.
Profile
{PROFILES.map((p, i) => (
setProfileIdx(i)}
style={profileIdx === i ? {background: palette[i], color: '#fff', borderColor: palette[i]} : {}}
>
{p.name}
))}
setHaulAway(e.target.checked)}
style={{'--accent': accent}}
/>
{haulAway && ✓ }
Haul away old fence
Tear-out, hauling & dump fees · ${HAUL_LF.toFixed(2)}/lf
{haulAway ? `+ ${fmtK(tHaul)}` : '—'}
Material / lf
{fmtUSD(matLF)}
Labor / lf
{fmtUSD(laborLF)}
{bars.map((b, i) => (
{b.label}
0 ? `${Math.max(2, (b.val / barMax) * 100)}%` : '0%',
background: accent,
}}
/>
{fmtK(b.val)}
))}
Total material ({linear} lf) {fmtK(tMatAll)}
Total labor {fmtK(tLab)}
{haulAway && (
Haul-away ({linear} lf) {fmtK(tHaul)}
)}
Customer price {fmtK(tSell)}
per linear foot
{fmtUSD(sellLF)}
Materials priced at retail. Written estimate accounts for slope, soil, special hardware, gates, and finish.
Request a measured quote →
);
}
function Footer({ palette }) {
return (
);
}
function GuideModal({ profile, palette, profileIdx, onClose }) {
useEffect(() => {
const onKey = (e) => { if (e.key === 'Escape') onClose(); };
document.body.style.overflow = 'hidden';
window.addEventListener('keydown', onKey);
return () => {
document.body.style.overflow = '';
window.removeEventListener('keydown', onKey);
};
}, [onClose]);
if (!profile) return null;
const accent = palette[profileIdx];
const g = profile.guide || {};
return (
e.stopPropagation()} style={{'--accent': accent}}>
×
{profile.tag} · {profile.kicker}
{profile.name}
{profile.blurb}
Construction
{(g.construction || []).map((c, i) => {c} )}
Pairs with
{g.pairs}
Maintenance
{g.maintenance}
Pros
{(g.pros || []).map((c, i) => {c} )}
Trade-offs
{(g.cons || []).map((c, i) => {c} )}
Height {profile.metrics.height}
Screening {profile.metrics.screening}/100
Airflow {profile.metrics.airflow}/100
Relative cost {profile.metrics.cost}/100
);
}
// ============ APP ============
function App() {
const [t, setTweak] = useTweaks(DEFAULT_TWEAKS);
const [guideIdx, setGuideIdx] = useState(null);
const palette = useMemo(() => {
return PALETTES[t.palette] || PALETTES.Muted;
}, [t.palette]);
const jump = (id) => {
const el = document.getElementById(id);
if (el) {
const top = el.getBoundingClientRect().top + window.scrollY - 70;
window.scrollTo({top, behavior: 'smooth'});
}
};
return (
{guideIdx !== null && (
setGuideIdx(null)}
/>
)}
setTweak('palette', v)}
/>
{palette.map((c, i) => (
))}
setTweak('background', v)}
/>
setTweak('ink', v)}
/>
setTweak('marqueeOn', v)}
/>
);
}
ReactDOM.createRoot(document.getElementById('root')).render(
);