@font-face {
    font-family: "Rokkitt";
    src: url("fonts/rokkitt.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Instrument Sans";
    src: url("fonts/instrument-sans.woff2") format("woff2");
    font-weight: 400 700;
    font-stretch: 75% 100%;
    font-display: swap;
}

:root {
    --char: #2a1e17;      /* burned brand on their logo board, text */
    --galv: #dde0dc;      /* galvanized steel, page ground */
    --primer: #f2f3f0;    /* light surface */
    --zinc: #8b928e;      /* rib shadow, rules */
    --panel: #2f3537;     /* their black corrugated, planner band */
    --cedar: #b8743f;     /* fresh cedar, frames and fence lines */
    --cedar-dark: #9a5e30;
    --heart: #8a3a1c;     /* cedar heartwood, calls only */
    --string: #ff4f8b;    /* mason line, planner only */
    --ink-soft: #5b504a;
    --display: "Rokkitt", Rockwell, "Roboto Slab", Georgia, serif;
    --body: "Instrument Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1200px;
    --gutter: clamp(18px, 4vw, 40px);
    --radius-s: 4px;
    --radius: 6px;
    --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis-smooth { scroll-behavior: auto !important; }
body {
    margin: 0;
    background: var(--galv);
    color: var(--char);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
    padding-bottom: 72px;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1; }
h3 { font-size: 1.2rem; font-weight: 650; line-height: 1.3; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--heart); outline-offset: 3px; }
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--char); color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

/* buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 12px 20px;
    border: 2px solid transparent; border-radius: var(--radius);
    font-family: inherit; font-size: 1rem; font-weight: 650; line-height: 1.2;
    text-decoration: none; cursor: pointer; text-align: center;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-call { background: var(--heart); color: #fff; }
.btn-call:hover { background: #6e2c14; }
.btn-plain { background: transparent; color: var(--char); border-color: var(--char); }
.btn-plain:hover { background: var(--char); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-light:hover { background: #fff; color: var(--panel); }

/* top bar and header */
.topbar { background: var(--char); color: #e9e2da; font-size: 0.875rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar p { margin: 0; }
.topbar a { color: #fff; font-weight: 650; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-note { color: #bfb3a8; margin-left: 6px; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--galv); border-bottom: 1px solid transparent; transition: border-color 0.2s ease, background-color 0.2s ease; }
.site-header.is-scrolled { border-bottom-color: #c2c6c1; background: rgba(221, 224, 220, 0.97); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; padding: 6px 0; }
.brand-top { font-family: var(--display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.32em; color: var(--ink-soft); border-top: 2px solid var(--char); padding-top: 4px; }
.brand-main { font-family: var(--display); font-weight: 900; font-size: 1.75rem; letter-spacing: 0.04em; border-bottom: 2px solid var(--char); padding-bottom: 3px; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { text-decoration: none; font-weight: 550; font-size: 0.98rem; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-nav .nav-call { background: var(--char); color: #fff; padding: 9px 15px; border-radius: var(--radius); }
.site-nav .nav-call:hover { background: #000; text-decoration: none; }
.nav-toggle { display: none; font-family: inherit; font-size: 1rem; font-weight: 650; background: var(--primer); color: var(--char); border: 1px solid var(--zinc); border-radius: var(--radius); min-height: 44px; padding: 0 16px; cursor: pointer; }

/* hero */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); }
.hero-head { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: 0.92; font-weight: 850; max-width: 12.5ch; }
.lede { font-size: 1.15rem; max-width: 46ch; color: #3b302a; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* the cedar frame: gaps and padding are the posts and rails */
.frame {
    display: grid; grid-template-columns: 2.1fr 1fr 1fr; gap: 16px; padding: 16px;
    background-color: var(--cedar);
    background-image: repeating-linear-gradient(90deg, rgba(90, 45, 15, 0.13) 0 2px, transparent 2px 9px, rgba(255, 220, 180, 0.08) 9px 11px, transparent 11px 23px);
    border-radius: var(--radius-s);
}
.panel { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.panel img { width: 100%; height: clamp(280px, 36vw, 470px); object-fit: cover; background: var(--panel); }
.panel-main img { object-position: 50% 60%; }
.panel figcaption { background: var(--char); color: #efe7de; font-size: 0.9rem; padding: 8px 12px; }

/* section heads */
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head p { margin: 0; max-width: 52ch; color: var(--ink-soft); }
.sec-head-dark p { color: #c9cfcc; }

/* services as a list */
.fences { padding: clamp(56px, 8vw, 104px) 0; background: var(--primer); }
.jobs-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--char); }
.job-row { display: grid; grid-template-columns: 300px 1fr; gap: clamp(18px, 3vw, 40px); padding: 22px 0; border-bottom: 1px solid #c8cbc6; align-items: start; }
.job-row img { width: 300px; height: 200px; object-fit: cover; border-radius: var(--radius-s); }
.job-row h3 { font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 700; margin-bottom: 8px; line-height: 1.05; }
.job-row p { margin: 0; max-width: 62ch; }
/* planner */
.planner {
    padding: clamp(56px, 8vw, 104px) 0;
    color: #f0f2ef;
    background-color: var(--panel);
    background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 7px, rgba(0,0,0,0.12) 7px 14px, rgba(255,255,255,0.02) 14px 21px, rgba(0,0,0,0) 21px 28px);
}
.planner-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.lot { margin: 0; background: #e6e9e4; border-radius: var(--radius); padding: 10px; position: sticky; top: calc(var(--header-h) + 20px); }
.lot-svg { width: 100%; height: auto; max-height: min(72vh, 660px); display: block; margin: 0 auto; touch-action: manipulation; }
.lot-street { fill: #6f7573; }
.lot-street-label { fill: #e5e7e4; font: 600 15px var(--body); letter-spacing: 0.08em; }
.lot-yard { fill: #b7c39e; }
.lot-house { fill: #d6d1c8; stroke: #8b8277; stroke-width: 1.5; }
.lot-house-label { fill: #5b504a; font: 600 14px var(--body); }
.lot-string { fill: none; stroke: var(--string); stroke-width: 1.6; }
.fence-line { fill: none; stroke-linecap: square; }
.fence-mine { stroke: var(--cedar); stroke-width: 7; }
.fence-yours-half { stroke: var(--cedar); stroke-width: 4; }
.fence-theirs { stroke: #6f7875; stroke-width: 4; }
.post { fill: var(--char); }
.gate { fill: none; stroke: var(--heart); stroke-width: 2.5; }
.gate-gap { stroke: #b7c39e; stroke-width: 9; }
.lot-len { fill: var(--char); font: 650 14px var(--body); }
.lot-len-bg { fill: #e6e9e4; }
.side-hit { fill: none; stroke: transparent; stroke-width: 30; pointer-events: stroke; cursor: pointer; }
.lot-key { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--char); font-size: 0.85rem; padding: 8px 6px 2px; }
.key { display: inline-block; width: 22px; height: 6px; margin-right: 7px; vertical-align: middle; background: var(--cedar); }
.key-shared { height: 8px; background: linear-gradient(#6f7875 0 50%, var(--cedar) 50% 100%); }
.key-string { height: 2px; background: var(--string); }

.planner-controls { display: grid; gap: 14px; }
.planner .field > span:first-child, .planner legend, .stepper > span { font-size: 0.9rem; font-weight: 600; color: #d6dbd8; }
.size-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.num { display: inline-flex; align-items: center; gap: 6px; color: #d6dbd8; }
.planner input[type="number"], .planner input[type="text"], .planner select {
    font-family: inherit; font-size: 1rem; color: var(--char); background: #f2f3f0;
    border: 1px solid #a4aba7; border-radius: var(--radius-s); min-height: 44px; padding: 8px 10px; width: 100%;
}
.planner input[type="number"] { width: 92px; }
.planner input[type="range"] { width: 100%; accent-color: var(--cedar); min-height: 28px; }
.side { border: 0; padding: 0; margin: 0; min-width: 0; }
.side legend { padding: 0; margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #6d7573; border-radius: var(--radius); overflow: hidden; }
.seg-two { grid-template-columns: repeat(2, 1fr); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 8px; font-size: 0.95rem; font-weight: 600; color: #dfe3e0; border-left: 1px solid #6d7573; transition: background-color 0.15s ease, color 0.15s ease; }
.seg label:first-child span { border-left: 0; }
.seg input:checked + span { background: #f2f3f0; color: var(--char); }
.seg input[value="mine"]:checked + span { box-shadow: inset 0 -4px 0 var(--cedar); }
.seg input[value="shared"]:checked + span { box-shadow: inset 0 -4px 0 var(--cedar-dark); }
.seg input:focus-visible + span { outline: 3px solid var(--string); outline-offset: -3px; }
.seg label:hover span { background: rgba(255,255,255,0.08); }
.seg label:hover input:checked + span { background: #fff; }
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.step { display: inline-flex; align-items: center; border: 1px solid #6d7573; border-radius: var(--radius); overflow: hidden; width: max-content; }
.step-btn { font-family: inherit; font-size: 1.3rem; line-height: 1; width: 44px; height: 44px; border: 0; background: #3d4446; color: #fff; cursor: pointer; }
.step-btn:hover { background: #4b5355; }
.step output { min-width: 44px; text-align: center; font-weight: 700; font-size: 1.1rem; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--cedar); margin: 0; }
.tally { display: grid; grid-template-columns: repeat(3, 1fr); margin: 6px 0 0; border-top: 1px solid #6d7573; border-bottom: 1px solid #6d7573; }
.tally div { padding: 12px 0; }
.tally div + div { padding-left: 14px; border-left: 1px solid #6d7573; }
.tally dt { font-size: 0.85rem; color: #c9cfcc; }
.tally dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1.05; }
.tally-note { font-size: 0.88rem; color: #c9cfcc; margin: 0; }
.planner-send { display: flex; flex-wrap: wrap; gap: 10px; }

/* work */
.work { padding: clamp(56px, 8vw, 104px) 0; }
.work-grid { list-style: none; margin: 0; padding: 0; columns: 3 260px; column-gap: 12px; }
.work-grid li { break-inside: avoid; margin-bottom: 12px; }
.shot { display: block; width: 100%; padding: 0; border: 0; background: var(--panel); cursor: zoom-in; border-radius: var(--radius-s); overflow: hidden; }
.shot img { width: 100%; transition: opacity 0.2s ease; }
.shot:hover img { opacity: 0.88; }

/* about and review */
.about { padding: clamp(56px, 8vw, 104px) 0; background: var(--primer); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy > p { max-width: 58ch; }
.motto { margin: 28px 0 0; padding: 18px 0 0; border-top: 2px solid var(--char); }
.motto p { font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.2; margin: 0 0 8px; }
.motto footer { font-size: 0.9rem; color: var(--ink-soft); }
.review { margin: 0; padding: clamp(22px, 3vw, 34px); background: var(--galv); border-left: 10px solid var(--cedar); }
.review blockquote { margin: 0 0 16px; }
.review blockquote p { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.15; margin: 0; }
.review figcaption { font-size: 0.95rem; color: var(--ink-soft); }
.review figcaption a { font-weight: 600; color: var(--char); }

/* area */
.area { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid #c2c6c1; }
.area-grid { display: grid; grid-template-columns: 1.2fr 1.3fr 0.8fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.area-grid p { color: var(--ink-soft); max-width: 40ch; }
.towns { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; font-family: var(--display); font-size: 1.4rem; font-weight: 650; line-height: 1.6; }
.hours h3 { margin-bottom: 6px; }

/* faq */
.faq { padding: clamp(56px, 8vw, 104px) 0; background: var(--primer); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.faq-list { border-top: 2px solid var(--char); }
.faq-item { border-bottom: 1px solid #c8cbc6; position: relative; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; font-weight: 650; font-size: 1.1rem; position: relative; transition: color 0.2s ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--char), var(--char)) center / 14px 2px no-repeat, linear-gradient(var(--char), var(--char)) center / 2px 14px no-repeat; transition: transform 0.3s ease; }
.faq-item.is-open summary { color: var(--heart); }
.faq-item.is-open summary::after { transform: rotate(45deg); }
.faq-item::before { content: ""; position: absolute; left: -16px; top: 0; bottom: 0; width: 4px; background: var(--cedar); transform: scaleY(0); transform-origin: top; transition: transform 0.3s ease; }
.faq-item.is-open::before { transform: scaleY(1); }
.faq-answer { overflow: hidden; margin: 0; padding: 0 0 24px; max-width: 64ch; color: #3b302a; }
/* contact */
.contact { padding: clamp(56px, 8vw, 104px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact-copy h2 { margin-bottom: 18px; }
.contact-copy p { max-width: 46ch; }
.contact-phone { font-family: var(--display); font-weight: 850; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; margin: 22px 0 10px; }
.contact-phone a { text-decoration: none; }
.contact-phone a:hover { color: var(--heart); }
.quote { display: grid; gap: 14px; background: var(--primer); padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); border-top: 10px solid var(--cedar); }
.quote .field > span { font-weight: 600; font-size: 0.95rem; }
.quote input, .quote textarea { font-family: inherit; font-size: 1rem; color: var(--char); background: #fff; border: 1px solid #a4aba7; border-radius: var(--radius-s); min-height: 46px; padding: 10px 12px; width: 100%; }
.quote textarea { resize: vertical; min-height: 120px; }
.quote-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-stamp { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--heart); border: 3px solid var(--heart); padding: 4px 12px; border-radius: var(--radius-s); transform: rotate(-4deg); }
.form-stamp:empty { display: none; }
.form-note { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

/* footer */
.site-footer { background: var(--char); color: #e4dcd3; padding: 44px 0 36px; font-size: 0.95rem; }
.footer-in { display: grid; grid-template-columns: 1fr 1.4fr 0.8fr; gap: 28px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer a { color: #fff; }
.footer-small { font-size: 0.9rem; line-height: 1.9; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(20, 15, 12, 0.94); display: flex; align-items: center; justify-content: center; padding: 56px 72px; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; }
.lb-cap { color: #e4dcd3; font-size: 0.95rem; margin-top: 12px; text-align: center; }
.lb-btn { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; cursor: pointer; display: grid; place-items: center; font-family: inherit; }
.lb-btn:hover { background: rgba(255,255,255,0.24); }
.lb-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { left: 14px; top: 50%; margin-top: -24px; }
.lb-next { right: 14px; top: 50%; margin-top: -24px; }
.lb-close { right: 14px; top: 14px; }

/* draft bar */
.draft-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; background: var(--primer); color: var(--char); border: 1px solid var(--zinc); border-radius: 10px; box-shadow: 0 6px 24px rgba(30, 27, 23, 0.18); font-size: 0.9rem; white-space: nowrap; }
.draft-bar p { margin: 0; }
.draft-btn { background: var(--char); color: #fff; text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: var(--radius); }
.draft-btn:hover { background: #000; }

/* responsive */
@media (max-width: 1060px) {
    .site-nav { gap: 16px; }
    .planner-grid { grid-template-columns: 1fr; }
    .lot { position: relative; top: auto; }
    .area-grid { grid-template-columns: 1fr 1fr; }
    .hours { grid-column: 2; }
}
@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; align-items: center; }
    .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gutter) 18px; background: var(--galv); border-bottom: 1px solid #c2c6c1; }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 13px 0; font-size: 1.05rem; border-bottom: 1px solid #c8cbc6; }
    .site-nav .nav-call { margin-top: 12px; text-align: center; border-bottom: 0; }
    .hero-head, .sec-head, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-head { align-items: start; }
    .frame { grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
    .panel-main { grid-column: 1 / -1; }
    .panel img { height: clamp(150px, 34vw, 260px); }
    .panel-main img { height: clamp(240px, 62vw, 420px); }
    .footer-in { grid-template-columns: 1fr 1fr; }
    .faq-item::before { left: -10px; }
}
@media (max-width: 640px) {
    body { font-size: 1rem; }
    .topbar-in p:first-child { display: none; }
    .topbar-note { margin-left: 4px; }
    .hero h1 { font-size: clamp(2.7rem, 13vw, 3.6rem); }
    .hero-actions .btn { width: 100%; }
    .job-row { grid-template-columns: 1fr; gap: 12px; }
    .job-row img { width: 100%; height: 200px; }
    .size-row, .extras { grid-template-columns: 1fr; }
    .tally { grid-template-columns: 1fr 1fr 1fr; }
    .tally dd { font-size: 1.6rem; }
    .planner-send .btn { width: 100%; }
    .area-grid { grid-template-columns: 1fr; }
    .hours { grid-column: auto; }
    .footer-in { grid-template-columns: 1fr; }
    .lightbox { padding: 64px 10px; }
    .lb-prev, .lb-next { top: auto; bottom: 14px; margin-top: 0; }
    .draft-bar { left: 10px; right: 10px; transform: none; white-space: normal; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}